Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Ask for confirmation before clearing nodes

City080c758cda19
diff --git a/web/scripts/ui.js b/web/scripts/ui.js
index 679f10b20..68bfc792a 100644
--- a/web/scripts/ui.js
+++ b/web/scripts/ui.js
@@ -510,6 +510,7 @@ export class ComfyUI {
$el("button", { textContent: "Load", onclick: () => fileInput.click() }),
$el("button", { textContent: "Refresh", onclick: () => app.refreshComboInNodes() }),
$el("button", { textContent: "Clear", onclick: () => {
+ if (!confirm("Are you sure you want to remove all nodes?")) return;
app.clean();
app.graph.clear();
}}),