mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Ask for confirmation before clearing nodes
This commit is contained in:
parent
1718730e80
commit
080c758cda
@ -510,6 +510,7 @@ export class ComfyUI {
|
|||||||
$el("button", { textContent: "Load", onclick: () => fileInput.click() }),
|
$el("button", { textContent: "Load", onclick: () => fileInput.click() }),
|
||||||
$el("button", { textContent: "Refresh", onclick: () => app.refreshComboInNodes() }),
|
$el("button", { textContent: "Refresh", onclick: () => app.refreshComboInNodes() }),
|
||||||
$el("button", { textContent: "Clear", onclick: () => {
|
$el("button", { textContent: "Clear", onclick: () => {
|
||||||
|
if (!confirm("Are you sure you want to remove all nodes?")) return;
|
||||||
app.clean();
|
app.clean();
|
||||||
app.graph.clear();
|
app.graph.clear();
|
||||||
}}),
|
}}),
|
||||||
|
Loading…
Reference in New Issue
Block a user