Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
e8c02219
"web/vscode:/vscode.git/clone" did not exist on "840464af93bae2ad2a2deba697a71e58c19fa8e9"
Commit
e8c02219
authored
Oct 16, 2023
by
Jairo Correa
Browse files
Fix add selected nodes to empty group
parent
7d5d0fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
web/extensions/core/groupOptions.js
web/extensions/core/groupOptions.js
+9
-9
No files found.
web/extensions/core/groupOptions.js
View file @
e8c02219
...
@@ -75,6 +75,15 @@ app.registerExtension({
...
@@ -75,6 +75,15 @@ app.registerExtension({
group
.
recomputeInsideNodes
();
group
.
recomputeInsideNodes
();
const
nodesInGroup
=
group
.
_nodes
;
const
nodesInGroup
=
group
.
_nodes
;
options
.
push
({
content
:
"
Add Selected Nodes To Group
"
,
disabled
:
!
Object
.
keys
(
app
.
canvas
.
selected_nodes
||
{}).
length
,
callback
:
()
=>
{
addNodesToGroup
(
group
,
this
.
selected_nodes
)
this
.
graph
.
change
();
}
});
// No nodes in group, return default options
// No nodes in group, return default options
if
(
nodesInGroup
.
length
===
0
)
{
if
(
nodesInGroup
.
length
===
0
)
{
return
options
;
return
options
;
...
@@ -92,15 +101,6 @@ app.registerExtension({
...
@@ -92,15 +101,6 @@ app.registerExtension({
}
}
}
}
options
.
push
({
content
:
"
Add Selected Nodes To Group
"
,
disabled
:
!
Object
.
keys
(
app
.
canvas
.
selected_nodes
||
{}).
length
,
callback
:
()
=>
{
addNodesToGroup
(
group
,
this
.
selected_nodes
)
this
.
graph
.
change
();
}
});
options
.
push
({
options
.
push
({
content
:
"
Fit Group To Nodes
"
,
content
:
"
Fit Group To Nodes
"
,
callback
:
()
=>
{
callback
:
()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment