mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-21 23:09:39 +00:00
Re-enable add node / add group tests (#2815)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -32,16 +32,17 @@ app.registerExtension({
|
||||
this.graph_mouse[1]
|
||||
)
|
||||
if (!group) {
|
||||
options.push({
|
||||
content: 'Add Group For Selected Nodes',
|
||||
disabled: !this.selectedItems?.size,
|
||||
callback: () => {
|
||||
const group = new LGraphGroup()
|
||||
addNodesToGroup(group, this.selectedItems)
|
||||
this.graph.add(group)
|
||||
this.graph.change()
|
||||
}
|
||||
})
|
||||
if (this.selectedItems.size > 0) {
|
||||
options.push({
|
||||
content: 'Add Group For Selected Nodes',
|
||||
callback: () => {
|
||||
const group = new LGraphGroup()
|
||||
addNodesToGroup(group, this.selectedItems)
|
||||
this.graph.add(group)
|
||||
this.graph.change()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user