improve: show try update when 'skip update check' is checked

fix: show failed/not updated item when 'installed' filter
This commit is contained in:
dr.lt.data 2024-01-04 13:53:04 +09:00
parent e18197029c
commit 8c730745d6
2 changed files with 14 additions and 2 deletions

View File

@ -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})")

View File

@ -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";