Lumotia - To-do
{#each builtInLists as list (list.id)} {/each} {#if customLists.length > 0} {/if} {#each customLists as list (list.id)} {#if editingListId === list.id} {:else}
{#if contextMenuListId === list.id}
e.stopPropagation()}> {#if profiles.length > 0}

Move to profile

{#each profiles as profile} {/each} {/if}
{/if}
{/if} {/each} {#if showNewList} { showNewList = false; newListName = ""; }} data-no-transition /> {:else} {/if}
{#if showSortMenu}
e.stopPropagation()}>
{/if}
{#if tasksForActiveList.length === 0}

No active tasks

Type above or drag tasks here

{:else}
{#each tasksForActiveList as task (task.id)}
handleTaskDragStart(e, task.id)} ondragend={handleTaskDragEnd} >

{task.text}

{#if task.createdAt}

{new Date(task.createdAt).toLocaleDateString("en-GB", { day: "numeric", month: "short" })}

{/if}
{/each}
{/if} {#if completedForActiveList.length > 0}
{#if showCompleted}
{#each completedForActiveList as task (task.id)}

{task.text}

{/each}
{/if}
{/if}