Skip to content

Commit

Permalink
implement manager storage data painters nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekPet committed Aug 21, 2024
1 parent cc83414 commit 5d66eb3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions PainterNode/lib/dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class PainterStorageDialog extends ComfyDialog {
});

const removeButtonEl = makeElement("button", {
style: { color: "var(--error-text)" },
style: { color: "var(--error-text)", padding: "7px", fontSize: "1rem" },
textContent: "Delete",
title: "Delete record!",
onclick: async (e) => {
Expand Down Expand Up @@ -220,7 +220,6 @@ export class PainterStorageDialog extends ComfyDialog {
}),
],
}),

makeElement("label", {
textContent: "JSON files",
for: "painter_storage_radio_json",
Expand All @@ -235,6 +234,10 @@ export class PainterStorageDialog extends ComfyDialog {
}),
],
}),
// makeElement("button", {
// textContent: "Refresh",
// style: { color: "limegreen", fontSize: "1rem", padding: "7px" },
// }),
],
}),
this.body,
Expand All @@ -253,5 +256,10 @@ export class PainterStorageDialog extends ComfyDialog {
this.body.append(this.createMenuElements(json_data_settings));
}
super.show(box);
this.element.style.zIndex = 9999;
}

close() {
this.element.remove();
}
}

0 comments on commit 5d66eb3

Please sign in to comment.