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
38cfba04
"src/vscode:/vscode.git/clone" did not exist on "65c662f95b8128844f82df9a3d1c7f11bbf3a622"
Commit
38cfba04
authored
Aug 01, 2023
by
comfyanonymous
Browse files
Rename toggle to boolean.
parent
eb5191f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
web/scripts/widgets.js
web/scripts/widgets.js
+2
-1
No files found.
web/scripts/widgets.js
View file @
38cfba04
...
...
@@ -279,7 +279,7 @@ export const ComfyWidgets = {
),
};
},
TOGGLE
(
node
,
inputName
,
inputData
)
{
BOOLEAN
(
node
,
inputName
,
inputData
)
{
let
defaultVal
=
inputData
[
1
][
"
default
"
];
return
{
widget
:
node
.
addWidget
(
...
...
@@ -287,6 +287,7 @@ export const ComfyWidgets = {
inputName
,
defaultVal
,
()
=>
{},
{
"
on
"
:
inputData
[
1
].
label_on
,
"
off
"
:
inputData
[
1
].
label_off
}
)
};
},
...
...
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