diff --git a/src/components/TopMenuSection.vue b/src/components/TopMenuSection.vue
index f9cc7054a..647356c26 100644
--- a/src/components/TopMenuSection.vue
+++ b/src/components/TopMenuSection.vue
@@ -20,6 +20,17 @@
class="[&:not(:has(*>*:not(:empty)))]:hidden"
>
+
+
+
queueStore.pendingTasks.length)
+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)
@@ -112,6 +131,11 @@ onMounted(() => {
const toggleQueueOverlay = () => {
isQueueOverlayExpanded.value = !isQueueOverlayExpanded.value
}
+
+const cancelCurrentJob = async () => {
+ if (isExecutionIdle.value) return
+ await commandStore.execute('Comfy.Interrupt')
+}