mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 07:10:52 +08:00
Add a confirmation dialog
This commit is contained in:
parent
4e5c0f4fa0
commit
97980628a4
@ -107,7 +107,10 @@ class ComfyApi extends EventTarget {
|
||||
}
|
||||
|
||||
async deleteAllImages() {
|
||||
await this.#postItem("delete", { delete: "all" })
|
||||
const confirmDelete = confirm("Are you sure you want to delete all images?");
|
||||
if (confirmDelete) {
|
||||
await this.#postItem("delete", { delete: "all" })
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user