web/queue: more uuid refactoring

This commit is contained in:
jj
2025-05-23 17:37:04 +00:00
parent 47683cecec
commit 17bcfa3a03
4 changed files with 13 additions and 12 deletions

View File

@@ -9,7 +9,7 @@
import { queueVisible } from "$lib/state/queue-visibility";
import { currentTasks } from "$lib/state/task-manager/current-tasks";
import type { CobaltQueueItem } from "$lib/types/queue";
import type { CobaltQueueItem, UUID } from "$lib/types/queue";
import type { CobaltCurrentTasks } from "$lib/types/task-manager";
import ProgressBar from "$components/queue/ProgressBar.svelte";
@@ -32,7 +32,7 @@
};
type Props = {
id: string;
id: UUID;
info: CobaltQueueItem;
}
@@ -133,7 +133,7 @@
}
};
const getWorkerProgress = (item: CobaltQueueItem, workerId: string): number | undefined => {
const getWorkerProgress = (item: CobaltQueueItem, workerId: UUID): number | undefined => {
if (item.state === 'running' && item.completedWorkers.has(workerId)) {
return 100;
}