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
9534f0f8
"...git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "69b2e9aa25538e11db8f3765385173215ca10328"
Unverified
Commit
9534f0f8
authored
Aug 04, 2023
by
Dr.Lt.Data
Committed by
GitHub
Aug 03, 2023
Browse files
allows convert to widget for boolean type (#1063)
parent
d1347544
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+1
-1
No files found.
web/extensions/core/widgetInputs.js
View file @
9534f0f8
...
@@ -2,7 +2,7 @@ import { ComfyWidgets, addValueControlWidget } from "../../scripts/widgets.js";
...
@@ -2,7 +2,7 @@ import { ComfyWidgets, addValueControlWidget } from "../../scripts/widgets.js";
import
{
app
}
from
"
../../scripts/app.js
"
;
import
{
app
}
from
"
../../scripts/app.js
"
;
const
CONVERTED_TYPE
=
"
converted-widget
"
;
const
CONVERTED_TYPE
=
"
converted-widget
"
;
const
VALID_TYPES
=
[
"
STRING
"
,
"
combo
"
,
"
number
"
];
const
VALID_TYPES
=
[
"
STRING
"
,
"
combo
"
,
"
number
"
,
"
BOOLEAN
"
];
function
isConvertableWidget
(
widget
,
config
)
{
function
isConvertableWidget
(
widget
,
config
)
{
return
VALID_TYPES
.
includes
(
widget
.
type
)
||
VALID_TYPES
.
includes
(
config
[
0
]);
return
VALID_TYPES
.
includes
(
widget
.
type
)
||
VALID_TYPES
.
includes
(
config
[
0
]);
...
...
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