show version

This commit is contained in:
Dr.Lt.Data 2023-05-06 20:53:48 +09:00
parent e5a70a1e81
commit 735ab74540

View File

@ -2,6 +2,8 @@ import { app } from "/scripts/app.js";
import { ComfyDialog, $el } from "/scripts/ui.js"; import { ComfyDialog, $el } from "/scripts/ui.js";
import {ComfyWidgets} from "../../scripts/widgets.js"; import {ComfyWidgets} from "../../scripts/widgets.js";
const comfyui_manager_version = "V0.1";
async function getCustomNodes() { async function getCustomNodes() {
var mode = "url"; var mode = "url";
if(ManagerMenuDialog.instance.local_mode_checkbox.checked) if(ManagerMenuDialog.instance.local_mode_checkbox.checked)
@ -652,7 +654,7 @@ class ManagerMenuDialog extends ComfyDialog {
const res = 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("br", {}, []),
$el("div", {}, [this.local_mode_checkbox, checkbox_text]), $el("div", {}, [this.local_mode_checkbox, checkbox_text]),
$el("br", {}, []), $el("br", {}, []),
@ -695,7 +697,8 @@ class ManagerMenuDialog extends ComfyDialog {
type: "button", type: "button",
textContent: "Close", textContent: "Close",
onclick: () => this.close(), onclick: () => this.close(),
}) }),
$el("br", {}, []),
]; ];
res[0].style.backgroundColor = "black"; res[0].style.backgroundColor = "black";