bugfix: enable/disable doesn't work without check

This commit is contained in:
Dr.Lt.Data 2023-08-19 02:17:40 +09:00
parent c49be4fd0f
commit f3f32a5f94
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -629,10 +629,11 @@ class CustomNodesInstaller extends ComfyDialog {
installBtn.style.color = 'white';
}
let j = i;
if(installBtn2 != null) {
installBtn2.style.width = "120px";
installBtn2.addEventListener('click', function() {
install_checked_custom_node(self.grid_rows, i, CustomNodesInstaller.instance, 'update');
install_checked_custom_node(self.grid_rows, j, CustomNodesInstaller.instance, 'update');
});
data5.appendChild(installBtn2);
@ -641,13 +642,12 @@ class CustomNodesInstaller extends ComfyDialog {
if(installBtn3 != null) {
installBtn3.style.width = "120px";
installBtn3.addEventListener('click', function() {
install_checked_custom_node(self.grid_rows, i, CustomNodesInstaller.instance, 'toggle_active');
install_checked_custom_node(self.grid_rows, j, CustomNodesInstaller.instance, 'toggle_active');
});
data5.appendChild(installBtn3);
}
let j = i;
installBtn.style.width = "120px";
installBtn.addEventListener('click', function() {
if(this.innerHTML == 'Uninstall') {