mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-10 23:50:00 +00:00
[Refactor] Convert dialogService to composable (#2058)
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
serialise
|
||||
} from '@/extensions/core/vintageClipboard'
|
||||
import type { ComfyNodeDef } from '@/types/apiTypes'
|
||||
import { showPromptDialog } from '@/services/dialogService'
|
||||
import { useDialogService } from '@/services/dialogService'
|
||||
import { t } from '@/i18n'
|
||||
|
||||
type GroupNodeWorkflowData = {
|
||||
@@ -80,7 +80,7 @@ class GroupNodeBuilder {
|
||||
}
|
||||
|
||||
async getName() {
|
||||
const name = await showPromptDialog({
|
||||
const name = await useDialogService().showPromptDialog({
|
||||
title: t('groupNode.create'),
|
||||
message: t('groupNode.enterName'),
|
||||
defaultValue: ''
|
||||
|
||||
Reference in New Issue
Block a user