{#if !showManageAttributes}
{#if currentSpace !== undefined} { if (!isManageAttributesAvailable) { return } showManageAttributes = !showManageAttributes }} > Manage attributes > {/if}
{#if currentSpace !== undefined && !keepOriginalAttribytes}
{/if} {:else}
(showManageAttributes = !showManageAttributes)} >
{#if loading} {:else if toMove.length > 0 && currentSpace} {#each toMove as issue} {@const upd = issueToUpdate.get(issue._id) ?? {}} {@const originalComponent = components.find((it) => it._id === issue.component)} {@const targetComponent = components.find( (it) => it.space === currentSpace?._id && it.label === originalComponent?.label )} {#key keepOriginalAttribytes} {#if issue.space !== currentSpace._id && (upd.status !== undefined || upd.component !== undefined)}
{#key upd.status} {/key} {#if targetComponent === undefined} {#key upd.component} {/key} {/if}
{/if} {/key} {/each} {/if}
{/if}
{ keepOriginalAttribytes = !keepOriginalAttribytes if (!keepOriginalAttribytes) { statusToUpdate = {} componentToUpdate = {} } }} />