Checklist Editor

{#if initialName}

Editing checklist {initialName}

{/if} {#if (checklist && user?.pk == checklist?.user_id) || !checklist}
{ if (e.key === 'Enter') { e.preventDefault(); addItem(); } }} />
{#if items.length > 0}

Items

{/if} {#each items as item, i}
{/each} {#if warning}
{warning}
{/if} {#if collection.is_public}
This checklist is public because it is in a public collection.
{/if}
{:else}
{#if items.length > 0}

Items

{/if} {#each items as item, i}
{/each}
{/if}