mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 14:09:59 +00:00
[Refactor] Move isImageNode to litegraphUtil (#2450)
This commit is contained in:
@@ -18,6 +18,7 @@ import { useToastStore } from '@/stores/toastStore'
|
||||
import { ComfyNodeDef, ExecutedWsMessage } from '@/types/apiTypes'
|
||||
import type { NodeId } from '@/types/comfyWorkflow'
|
||||
import { normalizeI18nKey } from '@/utils/formatUtil'
|
||||
import { isImageNode } from '@/utils/litegraphUtil'
|
||||
|
||||
import { useExtensionService } from './extensionService'
|
||||
|
||||
@@ -337,7 +338,7 @@ export const useLitegraphService = () => {
|
||||
})
|
||||
}
|
||||
|
||||
if (ComfyApp.isImageNode(this)) {
|
||||
if (isImageNode(this)) {
|
||||
options.push({
|
||||
content: 'Open in MaskEditor',
|
||||
callback: (obj) => {
|
||||
|
||||
Reference in New Issue
Block a user