diff --git a/svelte-ui/src/components/TaskIcon.svelte b/svelte-ui/src/components/TaskIcon.svelte index 4a99891..2cd2f17 100644 --- a/svelte-ui/src/components/TaskIcon.svelte +++ b/svelte-ui/src/components/TaskIcon.svelte @@ -7,6 +7,8 @@ import type { IconName } from "../external/icons"; export let task: TaskResult; export let iconName: IconName; + let showNumbersAnyway; + $: { switch (task.statusTag) { case "to do": iconName = "lightbulb"; break; @@ -16,10 +18,12 @@ import type { IconName } from "../external/icons"; default: iconName = "check"; break; } } + + $: showNumbersAnyway = ["to do", "on hold"].includes(task.statusTag) && task.itemAmount > 1; -
- {#if !task.active} +
+ {#if !task.active && !showNumbersAnyway} {task.completedAmount} / {task.itemAmount}