mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: image edit workflow editor
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user