mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
improve: allows multiple tabs for gallery
https://github.com/ltdrdata/ComfyUI-Manager/issues/400
This commit is contained in:
parent
bf499bdf2f
commit
7d8a413047
@ -29,7 +29,7 @@ except:
|
|||||||
print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.")
|
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 '')
|
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||||
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
print(f"### Loading: ComfyUI-Manager ({version_str})")
|
||||||
|
|
||||||
|
|||||||
@ -1052,7 +1052,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
onclick: (e) => {
|
onclick: (e) => {
|
||||||
const last_visited_site = localStorage.getItem("wg_last_visited")
|
const last_visited_site = localStorage.getItem("wg_last_visited")
|
||||||
if (!!last_visited_site) {
|
if (!!last_visited_site) {
|
||||||
window.open(last_visited_site, "comfyui-workflow-gallery");
|
window.open(last_visited_site, last_visited_site);
|
||||||
} else {
|
} else {
|
||||||
this.handleWorkflowGalleryButtonClick(e)
|
this.handleWorkflowGalleryButtonClick(e)
|
||||||
}
|
}
|
||||||
@ -1179,7 +1179,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
callback: () => {
|
callback: () => {
|
||||||
const url = "https://openart.ai/workflows/dev";
|
const url = "https://openart.ai/workflows/dev";
|
||||||
localStorage.setItem("wg_last_visited", url);
|
localStorage.setItem("wg_last_visited", url);
|
||||||
window.open(url, "comfyui-workflow-gallery");
|
window.open(url, url);
|
||||||
modifyButtonStyle(url);
|
modifyButtonStyle(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -1188,7 +1188,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
callback: () => {
|
callback: () => {
|
||||||
const url = "https://youml.com/?from=comfyui-share";
|
const url = "https://youml.com/?from=comfyui-share";
|
||||||
localStorage.setItem("wg_last_visited", url);
|
localStorage.setItem("wg_last_visited", url);
|
||||||
window.open(url, "comfyui-workflow-gallery");
|
window.open(url, url);
|
||||||
modifyButtonStyle(url);
|
modifyButtonStyle(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -1197,7 +1197,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
callback: () => {
|
callback: () => {
|
||||||
const url = "https://comfyworkflows.com/";
|
const url = "https://comfyworkflows.com/";
|
||||||
localStorage.setItem("wg_last_visited", url);
|
localStorage.setItem("wg_last_visited", url);
|
||||||
window.open(url, "comfyui-workflow-gallery");
|
window.open(url, url);
|
||||||
modifyButtonStyle(url);
|
modifyButtonStyle(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -1206,7 +1206,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
callback: () => {
|
callback: () => {
|
||||||
const url = "https://flowt.ai/";
|
const url = "https://flowt.ai/";
|
||||||
localStorage.setItem("wg_last_visited", url);
|
localStorage.setItem("wg_last_visited", url);
|
||||||
window.open(url, "comfyui-workflow-gallery");
|
window.open(url, url);
|
||||||
modifyButtonStyle(url);
|
modifyButtonStyle(url);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user