mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-09 15:10:17 +00:00
Expose dialogService to extensionManager (#2113)
This commit is contained in:
@@ -115,7 +115,7 @@ import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
|
||||
label: 'Reinstall',
|
||||
icon: 'pi pi-refresh',
|
||||
async function() {
|
||||
const proceed = await useDialogService().showConfirmationDialog({
|
||||
const proceed = await useDialogService().confirm({
|
||||
message: t('desktopMenu.confirmReinstall'),
|
||||
title: t('desktopMenu.reinstall'),
|
||||
type: 'reinstall'
|
||||
|
||||
@@ -79,7 +79,7 @@ class GroupNodeBuilder {
|
||||
}
|
||||
|
||||
async getName() {
|
||||
const name = await useDialogService().showPromptDialog({
|
||||
const name = await useDialogService().prompt({
|
||||
title: t('groupNode.create'),
|
||||
message: t('groupNode.enterName'),
|
||||
defaultValue: ''
|
||||
|
||||
@@ -353,7 +353,7 @@ app.registerExtension({
|
||||
content: `Save Selected as Template`,
|
||||
disabled: !Object.keys(app.canvas.selected_nodes || {}).length,
|
||||
callback: async () => {
|
||||
const name = await useDialogService().showPromptDialog({
|
||||
const name = await useDialogService().prompt({
|
||||
title: t('nodeTemplates.saveAsTemplate'),
|
||||
message: t('nodeTemplates.enterName'),
|
||||
defaultValue: ''
|
||||
|
||||
Reference in New Issue
Block a user