mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Add badge to outputs if multiple jobs queued
This commit is contained in:
@@ -62,7 +62,6 @@ const workflowStore = useWorkflowStore()
|
|||||||
|
|
||||||
void outputs.fetchMediaList()
|
void outputs.fetchMediaList()
|
||||||
|
|
||||||
const isRunning = computed(() => queueStore.runningTasks.length > 0)
|
|
||||||
const hasPreview = ref(false)
|
const hasPreview = ref(false)
|
||||||
whenever(
|
whenever(
|
||||||
() => nodeOutputStore.latestPreview[0],
|
() => nodeOutputStore.latestPreview[0],
|
||||||
@@ -448,8 +447,16 @@ useEventListener(document.body, 'keydown', (e: KeyboardEvent) => {
|
|||||||
ref="outputsRef"
|
ref="outputsRef"
|
||||||
class="h-full min-w-24 grow-1 p-3 overflow-y-auto border-r-1 border-node-component-border flex flex-col items-center"
|
class="h-full min-w-24 grow-1 p-3 overflow-y-auto border-r-1 border-node-component-border flex flex-col items-center"
|
||||||
>
|
>
|
||||||
<linear-job v-if="isRunning" class="py-3 w-full aspect-square px-1">
|
<linear-job
|
||||||
|
v-if="queueStore.runningTasks.length > 0"
|
||||||
|
class="py-3 w-full aspect-square px-1 relative"
|
||||||
|
>
|
||||||
<ProgressSpinner class="size-full" />
|
<ProgressSpinner class="size-full" />
|
||||||
|
<div
|
||||||
|
v-if="queueStore.runningTasks.length > 1"
|
||||||
|
class="absolute top-0 right-0 p-1 min-w-5 h-5 flex justify-center items-center rounded-full bg-primary-background text-text-primary"
|
||||||
|
v-text="queueStore.runningTasks.length"
|
||||||
|
/>
|
||||||
</linear-job>
|
</linear-job>
|
||||||
<linear-job
|
<linear-job
|
||||||
v-for="(item, index) in filteredOutputs"
|
v-for="(item, index) in filteredOutputs"
|
||||||
|
|||||||
Reference in New Issue
Block a user