mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 22:39:39 +00:00
[Refactor] Convert dialogService to composable (#2058)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { t } from '@/i18n'
|
||||
import { app } from '@/scripts/app'
|
||||
import { showConfirmationDialog } from '@/services/dialogService'
|
||||
import { useDialogService } from '@/services/dialogService'
|
||||
import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
|
||||
;(async () => {
|
||||
if (!isElectron()) return
|
||||
@@ -114,7 +114,7 @@ import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
|
||||
label: 'Reinstall',
|
||||
icon: 'pi pi-refresh',
|
||||
async function() {
|
||||
const proceed = await showConfirmationDialog({
|
||||
const proceed = await useDialogService().showConfirmationDialog({
|
||||
message: t('desktopMenu.confirmReinstall'),
|
||||
title: t('desktopMenu.reinstall'),
|
||||
type: 'reinstall'
|
||||
|
||||
Reference in New Issue
Block a user