mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 17:30:07 +00:00
Support preview display on subgraphNodes (#4814)
This commit is contained in:
@@ -727,7 +727,12 @@ export class ComfyApp {
|
|||||||
revokePreviewsByExecutionId(displayNodeId)
|
revokePreviewsByExecutionId(displayNodeId)
|
||||||
const blobUrl = URL.createObjectURL(blob)
|
const blobUrl = URL.createObjectURL(blob)
|
||||||
// Preview cleanup is handled in progress_state event to support multiple concurrent previews
|
// Preview cleanup is handled in progress_state event to support multiple concurrent previews
|
||||||
setNodePreviewsByExecutionId(displayNodeId, [blobUrl])
|
const nodeParents = displayNodeId.split(':')
|
||||||
|
for (let i = 1; i <= nodeParents.length; i++) {
|
||||||
|
setNodePreviewsByExecutionId(nodeParents.slice(0, i).join(':'), [
|
||||||
|
blobUrl
|
||||||
|
])
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
api.init()
|
api.init()
|
||||||
|
|||||||
Reference in New Issue
Block a user