Support checkpoint, add refresh after edit

This commit is contained in:
pythongosssss
2024-07-14 11:16:10 +01:00
parent dc0480c295
commit 93c69806f9
4 changed files with 27 additions and 22 deletions
+3 -1
View File
@@ -23,9 +23,10 @@ class MetadataDialog extends ComfyDialog {
}
export class ModelInfoDialog extends ComfyDialog {
constructor(name) {
constructor(name, node) {
super();
this.name = name;
this.node = node;
this.element.classList.add("pysssss-model-info");
}
@@ -164,6 +165,7 @@ export class ModelInfoDialog extends ComfyDialog {
textarea = null;
notesContainer.replaceChildren(...parseNote.call(this));
this.node?.["pysssss.updateExamples"]?.();
} else {
e.target.textContent = "💾 Save";
textarea = $el("textarea", {