web/queue: more uuid refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user