mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 17:30:07 +00:00
Replace window.alert with toast alert (#1112)
* Replace window.alert with toast alert * Mock jest
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
type LGraphNode,
|
||||
type LGraphNodeConstructor
|
||||
} from '@comfyorg/litegraph'
|
||||
import { useToastStore } from '@/stores/toastStore'
|
||||
|
||||
const ORDER: symbol = Symbol()
|
||||
const PREFIX = 'workflow'
|
||||
@@ -396,7 +397,7 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
|
||||
(n) => n.type === `${PREFIX}${SEPARATOR}` + this.selectedGroup
|
||||
)
|
||||
if (node) {
|
||||
alert(
|
||||
useToastStore().addAlert(
|
||||
'This group node is in use in the current workflow, please first remove these.'
|
||||
)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user