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.

Use name from input to export single node template

Jairo Correaa55507473709
diff --git a/web/extensions/core/nodeTemplates.js b/web/extensions/core/nodeTemplates.js
index 118565169..92d57f9d4 100644
--- a/web/extensions/core/nodeTemplates.js
+++ b/web/extensions/core/nodeTemplates.js
@@ -182,7 +182,7 @@ class ManageTemplates extends ComfyDialog {
const url = URL.createObjectURL(blob);
const a = $el("a", {
href: url,
- download: t.name + ".json",
+ download: (nameInput.value || t.name) + ".json",
style: {display: "none"},
parent: document.body,
});