diff --git a/opal-web/src/lib/components/TaskItem.svelte b/opal-web/src/lib/components/TaskItem.svelte index 5a0fa9f..bdd5d14 100644 --- a/opal-web/src/lib/components/TaskItem.svelte +++ b/opal-web/src/lib/components/TaskItem.svelte @@ -1,65 +1,66 @@ -
onClick(task.uuid)} role="button" tabindex="0"> -
onToggle(task.uuid)}> - -
- -
-
- - {task.description} - + onComplete(task.uuid)}> +
+
onComplete(task.uuid)} role="button" tabindex="-1"> +
- -
- {#if task.project} - {task.project} - {/if} - - {#if task.priority > 1} - - {priorityLabel} + +
+
+ + {task.description} - {/if} - - {#if task.due} - - {formatRelative(task.due)} - - {/if} - - {#if task.tags && task.tags.length > 0} -
- {#each task.tags as tag} - {tag} - {/each} -
- {/if} +
+ +
+ {#if task.project} + {task.project} + {/if} + + {#if task.priority === 3} + High + {:else if task.priority === 2} + Med + {:else if task.priority === 0} + Low + {/if} + + {#if task.due} + + {formatRelative(task.due)} + + {/if} + + {#if task.tags && task.tags.length > 0} +
+ {#each task.tags as tag} + {tag} + {/each} +
+ {/if} +
-
+