Labels
{#if allowedToEdit}
{#if showInput}
{ inputValue = ""; showInput = false; }} name="cross" /> {:else}
(showInput = true)}>
{/if}
{/if}
{#if allowedToEdit} {#each updatedLabels as label}
(removeToggles[label] = !removeToggles[label])}>
{label}
{#if removeToggles[label]}
removeLabel(label)} /> {/if}
{/each} {#if updatedLabels.length === 0 && !showInput}
No labels.
{/if} {:else} {#each updatedLabels as label}
{:else}
No labels.
{/each} {/if}
{#if showInput}
{#if !valid && validationMessage}
{validationMessage}
{/if}
{/if}