Assignees
{#if action === "edit"} {#if !editAssignees}
(editAssignees = !editAssignees)}> edit
{:else}
{ dispatch("saveAssignees", newAssignees); editAssignees = !editAssignees; }}> save
{/if} {/if}
{#each newAssignees as assignee, key (assignee)}
(newAssignees = newAssignees.filter((_, i) => i !== key))} removeable={editAssignees || action === "create"} {key}>
{formatNodeId(assignee)}
{:else}
No assignees
{/each}
{#if editAssignees || action === "create"}
(assigneeCaption = undefined)} placeholder="Assign this issue" validationMessage={assigneeCaption} valid={Boolean(parseNodeId(assignee))} />
{/if}
Tags
{#if action === "edit"} {#if !editTags}
(editTags = !editTags)}> edit
{:else}
{ dispatch("saveTags", newTags); editTags = !editTags; }}> save
{/if} {/if}
{#each newTags as tag, key (tag)}
(newTags = newTags.filter((_, i) => i !== key))} removeable={editTags || action === "create"} {key}>
{tag}
{:else}
No tags
{/each}
{#if editTags || action === "create"}
(tagCaption = undefined)} placeholder="Tag this issue" validationMessage={tagCaption} valid={tag !== ""} />
{/if}