diff --git a/src/scripts/workflows.ts b/src/scripts/workflows.ts index 65c77ba5d..bdc557334 100644 --- a/src/scripts/workflows.ts +++ b/src/scripts/workflows.ts @@ -13,6 +13,7 @@ import { useExecutionStore } from '@/stores/executionStore' import { markRaw, toRaw } from 'vue' import { UserDataFullInfo } from '@/types/apiTypes' import { useToastStore } from '@/stores/toastStore' +import { showPromptDialog } from '@/services/dialogService' export class ComfyWorkflowManager extends EventTarget { executionStore: ReturnType | null @@ -369,10 +370,11 @@ export class ComfyWorkflow { private async _save(path: string | null, overwrite: boolean) { if (!path) { - path = prompt( - 'Save workflow as:', - trimJsonExt(this.path) ?? this.name ?? 'workflow' - ) + path = await showPromptDialog({ + title: 'Save workflow', + message: 'Enter the filename:', + defaultValue: trimJsonExt(this.path) ?? this.name ?? 'workflow' + }) if (!path) return }