fix: button disable doesn't work when installing

fix: layout issue of model list
This commit is contained in:
dr.lt.data 2023-08-21 12:37:42 +09:00
parent 9d26f3145d
commit eb7606a09b
2 changed files with 9 additions and 8 deletions

View File

@ -55,7 +55,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url from torchvision.datasets.utils import download_url
# ensure .js # ensure .js
print("### Loading: ComfyUI-Manager (V0.24)") print("### Loading: ComfyUI-Manager (V0.24.1)")
comfy_ui_required_revision = 1240 comfy_ui_required_revision = 1240
comfy_ui_revision = "Unknown" comfy_ui_revision = "Unknown"

View File

@ -300,9 +300,9 @@ class CustomNodesInstaller extends ComfyDialog {
} }
disableButtons() { disableButtons() {
for(let i in self.install_buttons) { for(let i in this.install_buttons) {
self.install_buttons[i].disabled = true; this.install_buttons[i].disabled = true;
self.install_buttons[i].style.backgroundColor = 'gray'; this.install_buttons[i].style.backgroundColor = 'gray';
} }
} }
@ -884,9 +884,9 @@ class AlternativesInstaller extends ComfyDialog {
} }
disableButtons() { disableButtons() {
for(let i in self.install_buttons) { for(let i in this.install_buttons) {
self.install_buttons[i].disabled = true; this.install_buttons[i].disabled = true;
self.install_buttons[i].style.backgroundColor = 'gray'; this.install_buttons[i].style.backgroundColor = 'gray';
} }
} }
@ -1502,13 +1502,14 @@ class ModelInstaller extends ComfyDialog {
header3.style.width = "100px"; header3.style.width = "100px";
var header4 = document.createElement('th'); var header4 = document.createElement('th');
header4.innerHTML = 'Name'; header4.innerHTML = 'Name';
header4.style.width = "200px"; header4.style.width = "20%";
var header5 = document.createElement('th'); var header5 = document.createElement('th');
header5.innerHTML = 'Filename'; header5.innerHTML = 'Filename';
header5.style.width = "250px"; header5.style.width = "250px";
header5.style.tableLayout = "fixed"; header5.style.tableLayout = "fixed";
var header6 = document.createElement('th'); var header6 = document.createElement('th');
header6.innerHTML = 'description'; header6.innerHTML = 'description';
header6.style.width = "70%";
var header_down = document.createElement('th'); var header_down = document.createElement('th');
header_down.innerHTML = 'Download'; header_down.innerHTML = 'Download';
header_down.style.width = "50px"; header_down.style.width = "50px";