From 4f2c19b680a91cd15e15e703e3c6a9f2cd5d8361 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 26 Jan 2025 02:06:37 +0600 Subject: [PATCH] web/ProcessingQueue: indeterminate progress state --- web/src/components/queue/ProcessingQueue.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/components/queue/ProcessingQueue.svelte b/web/src/components/queue/ProcessingQueue.svelte index 84ea341e..2278ccb4 100644 --- a/web/src/components/queue/ProcessingQueue.svelte +++ b/web/src/components/queue/ProcessingQueue.svelte @@ -3,6 +3,7 @@ import { onNavigate } from "$app/navigation"; import type { SvelteComponent } from "svelte"; + import { currentTasks } from "$lib/state/queen-bee/current-tasks"; import { clearQueue, queue as readableQueue } from "$lib/state/queen-bee/queue"; import SectionHeading from "$components/misc/SectionHeading.svelte"; @@ -12,7 +13,6 @@ import ProcessingQueueStub from "$components/queue/ProcessingQueueStub.svelte"; import IconX from "@tabler/icons-svelte/IconX.svelte"; - import { currentTasks } from "$lib/state/queen-bee/current-tasks"; let popover: SvelteComponent; $: expanded = false; @@ -27,8 +27,7 @@ return 0; }).reduce((a, b) => a + b) / (100 * queue.length) : 0; - // TODO: toggle this only when progress is unknown - $: indeterminate = false; + $: indeterminate = queue.length > 0 && totalProgress === 0; const popoverAction = async () => { expanded = !expanded;