dispatch('close')} backAction={() => { showManageAttributes = !showManageAttributes }} isBack={showManageAttributes} thinHeader accentHeader hideSubheader={showManageAttributes} hideContent={showManageAttributes} hideAttachments numberOfBlocks={showManageAttributes ? toMove.length : targetProject !== undefined && !keepOriginalAttribytes && docs[0]?.space !== targetProject?._id ? 1 : 0} on:changeContent > {#if !showManageAttributes} {#if !showManageAttributes} {/if} {#if !showManageAttributes}
{#if targetProject !== undefined}
{:else if loading}{/if} {#if !showManageAttributes} {#if targetProject !== undefined && !keepOriginalAttribytes} {/if} {:else if toMove.length > 0 && targetProject} {@const issue = toMove[block]} {@const upd = issueToUpdate.get(issue._id) ?? {}} {@const originalComponent = components.find((it) => it._id === issue.component)} {@const targetComponent = components.find( (it) => it.space === targetProject?._id && it.label === originalComponent?.label )} {#key keepOriginalAttribytes} {#if issue.space !== targetProject._id && (upd.status !== undefined || upd.component !== undefined)}
{#key upd.status} {/key} {#if targetComponent === undefined} {#key upd.component} {/key} {/if} {/if} {/key} {/if}
{ keepOriginalAttribytes = !keepOriginalAttribytes if (!keepOriginalAttribytes) { statusToUpdate = {} componentToUpdate = {} } }} />