From 8b4f17447781fa5a50b4e9c150c621242794cbdb Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Mon, 8 Dec 2025 23:59:57 -0800 Subject: [PATCH] refactor(actionbar): move cancel and queue buttons into draggable container --- src/components/TopMenuSection.vue | 59 +----------------- src/components/actionbar/ComfyActionbar.vue | 68 +++++++++++++++++++++ 2 files changed, 71 insertions(+), 56 deletions(-) diff --git a/src/components/TopMenuSection.vue b/src/components/TopMenuSection.vue index 7b9d88b0e..38ffe6c3b 100644 --- a/src/components/TopMenuSection.vue +++ b/src/components/TopMenuSection.vue @@ -15,33 +15,9 @@ ref="legacyCommandsContainerRef" class="[&:not(:has(*>*:not(:empty)))]:hidden" > - - - - - - - + queueStore.pendingTasks.length) -const queueToggleLabel = computed(() => - t('sideToolbar.queueProgressOverlay.toggleLabel', { - count: queuedCount.value - }) -) -const { isIdle: isExecutionIdle } = storeToRefs(executionStore) -const queueHistoryTooltipConfig = computed(() => - buildTooltipConfig(t('sideToolbar.queueProgressOverlay.viewJobHistory')) -) -const cancelJobTooltipConfig = computed(() => - buildTooltipConfig(t('menu.interrupt')) -) // Right side panel toggle const { isOpen: isRightSidePanelOpen } = storeToRefs(rightSidePanelStore) @@ -128,15 +84,6 @@ onMounted(() => { legacyCommandsContainerRef.value.appendChild(app.menu.element) } }) - -const toggleQueueOverlay = () => { - isQueueOverlayExpanded.value = !isQueueOverlayExpanded.value -} - -const cancelCurrentJob = async () => { - if (isExecutionIdle.value) return - await commandStore.execute('Comfy.Interrupt') -}