From e65fc56c7533cb7fa83e2f8fed6ba68f0aa66c71 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Sat, 6 Dec 2025 16:23:03 -0800 Subject: [PATCH] Remove active state --- src/components/queue/QueueProgressOverlay.vue | 64 ++----------------- 1 file changed, 4 insertions(+), 60 deletions(-) diff --git a/src/components/queue/QueueProgressOverlay.vue b/src/components/queue/QueueProgressOverlay.vue index cf4d88fba..63915fb61 100644 --- a/src/components/queue/QueueProgressOverlay.vue +++ b/src/components/queue/QueueProgressOverlay.vue @@ -6,8 +6,6 @@
- - (), - { - menuHovered: false - } + {} ) const emit = defineEmits<{ @@ -109,14 +87,6 @@ const assetsStore = useAssetsStore() const assetSelectionStore = useAssetSelectionStore() const { wrapWithErrorHandlingAsync } = useErrorHandling() -const { - totalPercentFormatted, - currentNodePercentFormatted, - totalProgressStyle, - currentNodeProgressStyle -} = useQueueProgress() -const isHovered = ref(false) -const isOverlayHovered = computed(() => isHovered.value || props.menuHovered) const internalExpanded = ref(false) const isExpanded = computed({ get: () => @@ -140,16 +110,12 @@ const activeJobsCount = computed(() => runningCount.value + queuedCount.value) const overlayState = computed(() => { if (isExpanded.value) return 'expanded' - if (hasActiveJob.value) return 'active' if (hasCompletionSummary.value) return 'empty' return 'hidden' }) const showBackground = computed( - () => - overlayState.value === 'expanded' || - overlayState.value === 'empty' || - (overlayState.value === 'active' && isOverlayHovered.value) + () => overlayState.value === 'expanded' || overlayState.value === 'empty' ) const isVisible = computed(() => overlayState.value !== 'hidden') @@ -160,14 +126,6 @@ const containerClass = computed(() => : 'border-transparent bg-transparent shadow-none' ) -const bottomRowClass = computed( - () => - `flex items-center justify-end gap-4 transition-opacity duration-200 ease-in-out ${ - overlayState.value === 'active' && isOverlayHovered.value - ? 'opacity-100 pointer-events-auto' - : 'opacity-0 pointer-events-none' - }` -) const headerTitle = computed(() => hasActiveJob.value ? `${activeJobsCount.value} ${t('sideToolbar.queueProgressOverlay.activeJobsSuffix')}` @@ -187,8 +145,7 @@ const { selectedSortMode, hasFailedJobs, filteredTasks, - groupedJobItems, - currentNodeName + groupedJobItems } = useJobList() const displayedJobGroups = computed(() => groupedJobItems.value) @@ -218,10 +175,6 @@ const openExpandedFromEmpty = () => { setExpanded(true) } -const viewAllJobs = () => { - setExpanded(true) -} - const onSummaryClick = () => { openExpandedFromEmpty() clearSummary() @@ -261,15 +214,6 @@ const cancelQueuedWorkflows = wrapWithErrorHandlingAsync(async () => { await commandStore.execute('Comfy.ClearPendingTasks') }) -const interruptAll = wrapWithErrorHandlingAsync(async () => { - const tasks = queueStore.runningTasks - await Promise.all( - tasks - .filter((task) => task.promptId != null) - .map((task) => api.interrupt(task.promptId)) - ) -}) - const showClearHistoryDialog = () => { dialogStore.showDialog({ key: 'queue-clear-history',