From 735ab745401c3966fd65fc7e62a82e8a4ecfdce4 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 6 May 2023 20:53:48 +0900 Subject: [PATCH] show version --- js/comfyui-manager.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index 8f781cf..694731a 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -2,6 +2,8 @@ import { app } from "/scripts/app.js"; import { ComfyDialog, $el } from "/scripts/ui.js"; import {ComfyWidgets} from "../../scripts/widgets.js"; +const comfyui_manager_version = "V0.1"; + async function getCustomNodes() { var mode = "url"; if(ManagerMenuDialog.instance.local_mode_checkbox.checked) @@ -652,7 +654,7 @@ class ManagerMenuDialog extends ComfyDialog { const res = [ - $el("tr.td", {width:"100%"}, [$el("font", {size:6, color:"white"}, ["Manager Menu"])]), + $el("tr.td", {width:"100%"}, [$el("font", {size:6, color:"white"}, [`Manager Menu (${comfyui_manager_version})`])]), $el("br", {}, []), $el("div", {}, [this.local_mode_checkbox, checkbox_text]), $el("br", {}, []), @@ -695,7 +697,8 @@ class ManagerMenuDialog extends ComfyDialog { type: "button", textContent: "Close", onclick: () => this.close(), - }) + }), + $el("br", {}, []), ]; res[0].style.backgroundColor = "black";