Browse Source

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

fix: show failed/not updated item when 'installed' filter
pull/289/head
dr.lt.data 11 months ago
parent
commit
8c730745d6
  1. 2
      __init__.py
  2. 14
      js/custom-nodes-downloader.js

2
__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})")

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

Loading…
Cancel
Save