Prevent video output nodes from showing edit model button (#4278)

This commit is contained in:
filtered
2025-06-26 06:15:09 -07:00
committed by GitHub
parent 35ee8f2d92
commit a9b7ed2a53

View File

@@ -19,7 +19,7 @@ import { useI18n } from 'vue-i18n'
import { useCommandStore } from '@/stores/commandStore'
import { useCanvasStore } from '@/stores/graphStore'
import { isLGraphNode } from '@/utils/litegraphUtil'
import { isImageNode, isLGraphNode } from '@/utils/litegraphUtil'
const { t } = useI18n()
const commandStore = useCommandStore()
@@ -27,7 +27,7 @@ const canvasStore = useCanvasStore()
const isImageOutputOrEditModelNode = (node: unknown) =>
isLGraphNode(node) &&
(node.images?.length || node.type === 'workflow>FLUX.1 Kontext Image Edit')
(isImageNode(node) || node.type === 'workflow>FLUX.1 Kontext Image Edit')
const isImageOutputSelected = computed(
() =>