Browse Source

improve: allows multiple tabs for gallery

https://github.com/ltdrdata/ComfyUI-Manager/issues/400
pull/401/head
dr.lt.data 9 months ago
parent
commit
7d8a413047
  1. 2
      __init__.py
  2. 10
      js/comfyui-manager.js

2
__init__.py

@ -29,7 +29,7 @@ except:
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
version = [2, 7, 1]
version = [2, 7, 2]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
print(f"### Loading: ComfyUI-Manager ({version_str})")

10
js/comfyui-manager.js vendored

@ -1052,7 +1052,7 @@ class ManagerMenuDialog extends ComfyDialog {
onclick: (e) => {
const last_visited_site = localStorage.getItem("wg_last_visited")
if (!!last_visited_site) {
window.open(last_visited_site, "comfyui-workflow-gallery");
window.open(last_visited_site, last_visited_site);
} else {
this.handleWorkflowGalleryButtonClick(e)
}
@ -1179,7 +1179,7 @@ class ManagerMenuDialog extends ComfyDialog {
callback: () => {
const url = "https://openart.ai/workflows/dev";
localStorage.setItem("wg_last_visited", url);
window.open(url, "comfyui-workflow-gallery");
window.open(url, url);
modifyButtonStyle(url);
},
},
@ -1188,7 +1188,7 @@ class ManagerMenuDialog extends ComfyDialog {
callback: () => {
const url = "https://youml.com/?from=comfyui-share";
localStorage.setItem("wg_last_visited", url);
window.open(url, "comfyui-workflow-gallery");
window.open(url, url);
modifyButtonStyle(url);
},
},
@ -1197,7 +1197,7 @@ class ManagerMenuDialog extends ComfyDialog {
callback: () => {
const url = "https://comfyworkflows.com/";
localStorage.setItem("wg_last_visited", url);
window.open(url, "comfyui-workflow-gallery");
window.open(url, url);
modifyButtonStyle(url);
},
},
@ -1206,7 +1206,7 @@ class ManagerMenuDialog extends ComfyDialog {
callback: () => {
const url = "https://flowt.ai/";
localStorage.setItem("wg_last_visited", url);
window.open(url, "comfyui-workflow-gallery");
window.open(url, url);
modifyButtonStyle(url);
},
},

Loading…
Cancel
Save