mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 00:39:49 +00:00
This reverts commit c8d5a6f154.
This commit is contained in:
@@ -285,6 +285,11 @@ const confirmRemoveAll = (event: Event) => {
|
||||
})
|
||||
}
|
||||
|
||||
const onStatus = async () => {
|
||||
await queueStore.update()
|
||||
updateVisibleTasks()
|
||||
}
|
||||
|
||||
const menu = ref(null)
|
||||
const menuTargetTask = ref<TaskItemImpl | null>(null)
|
||||
const menuTargetNode = ref<ComfyNode | null>(null)
|
||||
@@ -347,11 +352,12 @@ const toggleImageFit = () => {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
api.addEventListener('status', updateVisibleTasks)
|
||||
api.addEventListener('status', onStatus)
|
||||
queueStore.update()
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
api.removeEventListener('status', updateVisibleTasks)
|
||||
api.removeEventListener('status', onStatus)
|
||||
})
|
||||
|
||||
// Watch for changes in allTasks and reset visibleTasks if necessary
|
||||
|
||||
Reference in New Issue
Block a user