From 92c1f3877d878ae9e7fc20c000e0184ad29698f5 Mon Sep 17 00:00:00 2001 From: "dr.lt.data" Date: Fri, 28 Jul 2023 11:02:20 +0900 Subject: [PATCH] add community manual button --- __init__.py | 2 +- js/comfyui-manager.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 55395fa8..fd2e899e 100644 --- a/__init__.py +++ b/__init__.py @@ -32,7 +32,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.15.1)") +print("### Loading: ComfyUI-Manager (V0.16)") comfy_ui_revision = "Unknown" diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index 862ff52d..5068c7bd 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -1393,15 +1393,23 @@ class ManagerMenuDialog extends ComfyDialog { } }), + $el("br", {}, []), + $el("button", { + type: "button", + textContent: "ComfyUI Community Manual", + onclick: () => { window.open("https://blenderneko.github.io/ComfyUI-docs/", "comfyui-community-manual"); } + }), + $el("br", {}, []), $el("button", { type: "button", textContent: "Close", - onclick: () => this.close(), + onclick: () => this.close() }), $el("br", {}, []), ]; + res[0].style.padding = "10px 10px 0 10px"; res[0].style.backgroundColor = "black"; res[0].style.textAlign = "center"; res[0].style.height = "45px";