pass UI_OUTPUT to front end and add to prototype

This commit is contained in:
Chris 2023-09-11 14:55:20 +10:00
parent 9562a6b49e
commit b4398a09d3
2 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,7 @@ class PromptServer():
info['name'] = node_class
info['display_name'] = nodes.NODE_DISPLAY_NAME_MAPPINGS[node_class] if node_class in nodes.NODE_DISPLAY_NAME_MAPPINGS.keys() else node_class
info['description'] = obj_class.DESCRIPTION if hasattr(obj_class,'DESCRIPTION') else ''
info['ui_output'] = obj_class.UI_OUTPUT if hasattr(obj_class, 'UI_OUTPUT') else ''
info['category'] = 'sd'
if hasattr(obj_class, 'OUTPUT_NODE') and obj_class.OUTPUT_NODE == True:
info['output_node'] = True

View File

@ -1273,6 +1273,7 @@ export class ComfyApp {
}
);
node.prototype.comfyClass = nodeData.name;
node.prototype.ui_output = nodeData.ui_output;
this.#addNodeContextMenuHandler(node);
this.#addDrawBackgroundHandler(node, app);