From eb7606a09bbf49c75784ffb584884147396199d5 Mon Sep 17 00:00:00 2001 From: "dr.lt.data" Date: Mon, 21 Aug 2023 12:37:42 +0900 Subject: [PATCH] fix: button disable doesn't work when installing fix: layout issue of model list --- __init__.py | 2 +- js/comfyui-manager.js | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/__init__.py b/__init__.py index 6a309118..19549f72 100644 --- a/__init__.py +++ b/__init__.py @@ -55,7 +55,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.24)") +print("### Loading: ComfyUI-Manager (V0.24.1)") comfy_ui_required_revision = 1240 comfy_ui_revision = "Unknown" diff --git a/js/comfyui-manager.js b/js/comfyui-manager.js index cab4acd0..049e772f 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -300,9 +300,9 @@ class CustomNodesInstaller extends ComfyDialog { } disableButtons() { - for(let i in self.install_buttons) { - self.install_buttons[i].disabled = true; - self.install_buttons[i].style.backgroundColor = 'gray'; + for(let i in this.install_buttons) { + this.install_buttons[i].disabled = true; + this.install_buttons[i].style.backgroundColor = 'gray'; } } @@ -884,9 +884,9 @@ class AlternativesInstaller extends ComfyDialog { } disableButtons() { - for(let i in self.install_buttons) { - self.install_buttons[i].disabled = true; - self.install_buttons[i].style.backgroundColor = 'gray'; + for(let i in this.install_buttons) { + this.install_buttons[i].disabled = true; + this.install_buttons[i].style.backgroundColor = 'gray'; } } @@ -1502,13 +1502,14 @@ class ModelInstaller extends ComfyDialog { header3.style.width = "100px"; var header4 = document.createElement('th'); header4.innerHTML = 'Name'; - header4.style.width = "200px"; + header4.style.width = "20%"; var header5 = document.createElement('th'); header5.innerHTML = 'Filename'; header5.style.width = "250px"; header5.style.tableLayout = "fixed"; var header6 = document.createElement('th'); header6.innerHTML = 'description'; + header6.style.width = "70%"; var header_down = document.createElement('th'); header_down.innerHTML = 'Download'; header_down.style.width = "50px";