diff --git a/__init__.py b/__init__.py index fd636a3..58e0d33 100644 --- a/__init__.py +++ b/__init__.py @@ -27,7 +27,7 @@ except: print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") -version = [1, 19, 2] +version = [1, 20] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') print(f"### Loading: ComfyUI-Manager ({version_str})") diff --git a/js/custom-nodes-downloader.js b/js/custom-nodes-downloader.js index fda3476..5a48686 100644 --- a/js/custom-nodes-downloader.js +++ b/js/custom-nodes-downloader.js @@ -131,7 +131,10 @@ export class CustomNodesInstaller extends ComfyDialog { let content = data.author.toLowerCase() + data.description.toLowerCase() + data.title.toLowerCase() + data.reference.toLowerCase(); if(this.filter && this.filter != '*') { - if(this.filter != data.installed) { + if(this.filter == 'True' && (data.installed == 'Update' || data.installed == 'Fail')) { + this.grid_rows[i].control.style.display = null; + } + else if(this.filter != data.installed) { this.grid_rows[i].control.style.display = 'none'; continue; } @@ -530,6 +533,15 @@ export class CustomNodesInstaller extends ComfyDialog { break; case 'Fail': case 'True': + if(manager_instance.update_check_checkbox.checked) { + installBtn2 = document.createElement('button'); + installBtn2.innerHTML = 'Try update'; + installBtn2.className = "cm-btn-update"; + installBtn2.style.backgroundColor = 'Gray'; + installBtn2.style.color = 'white'; + this.install_buttons.push(installBtn2); + } + installBtn3 = document.createElement('button'); installBtn3.innerHTML = 'Disable'; installBtn3.className = "cm-btn-disable";