{ view.store.cursorTask = task.id; }} style="grid-template-columns: 1.25rem minmax(0, 1fr) auto;" use:draggable={{ payload: () => ({ id: task.id, kind: "task" }), ondrop: (to, after) => void handleDrop(view, task, to, after), enabled: () => !editing, }} >
{#if showSphere} {/if} {#if task.inArchive} {:else if showProject} {/if} {#if editing} {:else}
{ if (!followLink(view.app, event, task.path)) startEdit(); }} onkeydown={(event) => { if (event.key === "Enter") startEdit(); }} role="button" tabindex="0" title={task.text} use:markdown={{ app: view.app, component: view.component, sourcePath: task.path, text: task.text, }} >
{/if}
{#if task.priority !== 2} {/if}