Browse Source

Use name from input to export single node template

pull/1777/head
Jairo Correa 1 year ago
parent
commit
a555074737
  1. 2
      web/extensions/core/nodeTemplates.js

2
web/extensions/core/nodeTemplates.js

@ -182,7 +182,7 @@ class ManageTemplates extends ComfyDialog {
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
const a = $el("a", { const a = $el("a", {
href: url, href: url,
download: t.name + ".json", download: (nameInput.value || t.name) + ".json",
style: {display: "none"}, style: {display: "none"},
parent: document.body, parent: document.body,
}); });

Loading…
Cancel
Save