fix: image edit workflow editor

This commit is contained in:
Timothy Jaeryang Baek 2025-11-06 14:17:54 -05:00
parent d5fe0f6067
commit 67c4ea1e57

View file

@ -62,6 +62,7 @@
} }
]; ];
let showComfyUIEditWorkflowEditor = false;
let REQUIRED_EDIT_WORKFLOW_NODES = [ let REQUIRED_EDIT_WORKFLOW_NODES = [
{ {
type: 'image', type: 'image',
@ -1075,7 +1076,7 @@
aria-label={$i18n.t('Edit workflow.json content')} aria-label={$i18n.t('Edit workflow.json content')}
on:click={() => { on:click={() => {
// open code editor modal // open code editor modal
showComfyUIWorkflowEditor = true; showComfyUIEditWorkflowEditor = true;
}} }}
> >
{$i18n.t('Edit')} {$i18n.t('Edit')}
@ -1100,7 +1101,7 @@
<div class="mt-1 text-xs text-gray-400 dark:text-gray-500"> <div class="mt-1 text-xs text-gray-400 dark:text-gray-500">
<CodeEditorModal <CodeEditorModal
bind:show={showComfyUIWorkflowEditor} bind:show={showComfyUIEditWorkflowEditor}
value={config.IMAGES_EDIT_COMFYUI_WORKFLOW} value={config.IMAGES_EDIT_COMFYUI_WORKFLOW}
lang="json" lang="json"
onChange={(e) => { onChange={(e) => {