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:
@@ -20,6 +20,9 @@ export const useToastStore = defineStore('toast', {
|
||||
},
|
||||
removeAll() {
|
||||
this.removeAllRequested = true
|
||||
},
|
||||
addAlert(message: string) {
|
||||
this.add({ severity: 'warn', summary: 'Alert', detail: message })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user