[Refactor] Convert dialogService to composable (#2058)

This commit is contained in:
Chenlei Hu
2024-12-26 00:26:01 -05:00
committed by GitHub
parent 4e554503c0
commit f69e88bf41
8 changed files with 176 additions and 171 deletions

View File

@@ -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: ''