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
0256e7f7
Commit
0256e7f7
authored
Apr 12, 2024
by
comfyanonymous
Browse files
Fix tests.
parent
2bef134e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tests-ui/utils/ezgraph.js
tests-ui/utils/ezgraph.js
+6
-2
No files found.
tests-ui/utils/ezgraph.js
View file @
0256e7f7
...
...
@@ -204,13 +204,17 @@ export class EzWidget {
convertToWidget() {
if (!this.isConvertedToInput)
throw new Error(`
Widget
$
{
this
.
widget
.
name
}
cannot
be
converted
as
it
is
already
a
widget
.
`);
this.node.menu[`
Convert
$
{
this
.
widget
.
name
}
to
widget
`].call();
var menu = this.node.menu["Convert 🔘 to widget.."].item.submenu.options;
var index = menu.findIndex(a => a.content == `
Convert
$
{
this
.
widget
.
name
}
to
widget
`);
menu[index].callback.call();
}
convertToInput() {
if (this.isConvertedToInput)
throw new Error(`
Widget
$
{
this
.
widget
.
name
}
cannot
be
converted
as
it
is
already
an
input
.
`);
this.node.menu[`
Convert
$
{
this
.
widget
.
name
}
to
input
`].call();
var menu = this.node.menu["Convert input to 🔘.."].item.submenu.options;
var index = menu.findIndex(a => a.content == `
Convert
$
{
this
.
widget
.
name
}
to
input
`);
menu[index].callback.call();
}
}
...
...
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