From bcd20507b8754af83d67913bcbc54d69c18cbf79 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 9 Dec 2025 19:16:48 -0800 Subject: [PATCH] [backport core/1.34] Move cancel button into actionbar (#7297) (#7298) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Backport of 29035604163b0fc1b90f9956528e5e658b2447d5 to core/1.34 to place the cancel control alongside the run controls. ## Changes - **What**: Move the interrupt button into the actionbar and remove the duplicate from the top menu. - **Breaking**: none - **Dependencies**: none ## Review Focus Check spacing/hover states of the new cancel control in docked vs floating layouts. ## Screenshots (if applicable) - n/a ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7298-backport-core-1-34-Move-cancel-button-into-actionbar-7297-2c46d73d36508188ad42ceaec0c2d469) by [Unito](https://www.unito.io) --- src/components/TopMenuSection.vue | 24 ------------------ src/components/actionbar/ComfyActionbar.vue | 28 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/components/TopMenuSection.vue b/src/components/TopMenuSection.vue index 9714b8153..f9cc7054a 100644 --- a/src/components/TopMenuSection.vue +++ b/src/components/TopMenuSection.vue @@ -20,17 +20,6 @@ class="[&:not(:has(*>*:not(:empty)))]:hidden" > - - - queueStore.pendingTasks.length) const queueHistoryTooltipConfig = computed(() => buildTooltipConfig(t('sideToolbar.queueProgressOverlay.viewJobHistory')) ) -const cancelJobTooltipConfig = computed(() => - buildTooltipConfig(t('menu.interrupt')) -) // Right side panel toggle const { isOpen: isRightSidePanelOpen } = storeToRefs(rightSidePanelStore) -const { isIdle: isExecutionIdle } = storeToRefs(executionStore) const rightSidePanelTooltipConfig = computed(() => buildTooltipConfig(t('rightSidePanel.togglePanel')) ) @@ -131,11 +112,6 @@ onMounted(() => { const toggleQueueOverlay = () => { isQueueOverlayExpanded.value = !isQueueOverlayExpanded.value } - -const cancelCurrentJob = async () => { - if (isExecutionIdle.value) return - await commandStore.execute('Comfy.Interrupt') -}