diff --git a/__init__.py b/__init__.py index 3fb524bf..b628ea56 100644 --- a/__init__.py +++ b/__init__.py @@ -20,7 +20,7 @@ import nodes import torch -version = [1, 15] +version = [1, 15, 1] 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/comfyui-manager.js b/js/comfyui-manager.js index 0497a412..282b260f 100644 --- a/js/comfyui-manager.js +++ b/js/comfyui-manager.js @@ -854,31 +854,30 @@ class ManagerMenuDialog extends ComfyDialog { { title: "Share your art", callback: () => { - this.close(); - if (!ShareDialog.instance) { - ShareDialog.instance = new ShareDialog(); - } - - app.graphToPrompt().then(prompt => { - // console.log({ prompt }) - return app.graph._nodes; - }).then(nodes => { - // console.log({ nodes }); - const { potential_outputs, potential_output_nodes } = getPotentialOutputsAndOutputNodes(nodes); - - if (potential_outputs.length === 0) { - if (potential_output_nodes.length === 0) { - // todo: add support for other output node types (animatediff combine, etc.) - const supported_nodes_string = SUPPORTED_OUTPUT_NODE_TYPES.join(", "); - alert(`No supported output node found (${supported_nodes_string}). To share this workflow, please add an output node to your graph and re-run your prompt.`); - } else { - alert("To share this, first run a prompt. Once it's done, click 'Share'."); + if (share_option === 'openart') { + showOpenArtShareDialog(); + return; + } else if (share_option === 'matrix' || share_option === 'comfyworkflows') { + showShareDialog(share_option); + return; } - return; - } - ShareDialog.instance.show({ potential_outputs, potential_output_nodes }); - }); + if(!ShareDialogChooser.instance) { + ShareDialogChooser.instance = new ShareDialogChooser(); + } + ShareDialogChooser.instance.show(); + }, + }, + { + title: "Open 'openart.ai'", + callback: () => { + window.open("https://openart.ai/workflows/dev", "comfyui-workflow-gallery"); + }, + }, + { + title: "Open 'comfyworkflows.com'", + callback: () => { + window.open("https://comfyworkflows.com/", "comfyui-workflow-gallery"); }, }, { diff --git a/js/comfyui-share-common.js b/js/comfyui-share-common.js index 20723164..451a7197 100644 --- a/js/comfyui-share-common.js +++ b/js/comfyui-share-common.js @@ -387,6 +387,7 @@ export class ShareDialogChooser extends ComfyDialog { } show() { this.element.style.display = "block"; + this.element.style.zIndex = 10001; } } export class ShareDialog extends ComfyDialog {