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
80932ddf
Commit
80932ddf
authored
Oct 05, 2023
by
pythongosssss
Browse files
updated messages
parent
0b9246d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+6
-3
No files found.
web/extensions/core/widgetInputs.js
View file @
80932ddf
...
@@ -533,7 +533,7 @@ app.registerExtension({
...
@@ -533,7 +533,7 @@ app.registerExtension({
if
(
k
===
"
min
"
)
{
if
(
k
===
"
min
"
)
{
const
theirMax
=
config2
[
1
][
"
max
"
];
const
theirMax
=
config2
[
1
][
"
max
"
];
if
(
theirMax
!=
null
&&
v1
>
theirMax
)
{
if
(
theirMax
!=
null
&&
v1
>
theirMax
)
{
console
.
log
(
"
Invalid
connection
,
min > max
"
);
console
.
log
(
"
connection
rejected:
min > max
"
,
v1
,
theirMax
);
return
false
;
return
false
;
}
}
getCustomConfig
()[
k
]
=
v1
==
null
?
v2
:
v2
==
null
?
v1
:
Math
.
max
(
v1
,
v2
);
getCustomConfig
()[
k
]
=
v1
==
null
?
v2
:
v2
==
null
?
v1
:
Math
.
max
(
v1
,
v2
);
...
@@ -541,7 +541,7 @@ app.registerExtension({
...
@@ -541,7 +541,7 @@ app.registerExtension({
}
else
if
(
k
===
"
max
"
)
{
}
else
if
(
k
===
"
max
"
)
{
const
theirMin
=
config2
[
1
][
"
min
"
];
const
theirMin
=
config2
[
1
][
"
min
"
];
if
(
theirMin
!=
null
&&
v1
<
theirMin
)
{
if
(
theirMin
!=
null
&&
v1
<
theirMin
)
{
console
.
log
(
"
Invalid
connection
,
max < min
"
);
console
.
log
(
"
connection
rejected:
max < min
"
,
v1
,
theirMin
);
return
false
;
return
false
;
}
}
getCustomConfig
()[
k
]
=
v1
==
null
?
v2
:
v2
==
null
?
v1
:
Math
.
min
(
v1
,
v2
);
getCustomConfig
()[
k
]
=
v1
==
null
?
v2
:
v2
==
null
?
v1
:
Math
.
min
(
v1
,
v2
);
...
@@ -549,17 +549,20 @@ app.registerExtension({
...
@@ -549,17 +549,20 @@ app.registerExtension({
}
else
if
(
k
===
"
step
"
)
{
}
else
if
(
k
===
"
step
"
)
{
let
step
;
let
step
;
if
(
v1
==
null
)
{
if
(
v1
==
null
)
{
// No current step
step
=
v2
;
step
=
v2
;
}
else
if
(
v2
==
null
)
{
}
else
if
(
v2
==
null
)
{
// No new step
step
=
v1
;
step
=
v1
;
}
else
{
}
else
{
if
(
v1
<
v2
)
{
if
(
v1
<
v2
)
{
// Ensure v1 is larger for the mod
const
a
=
v2
;
const
a
=
v2
;
v2
=
v1
;
v2
=
v1
;
v1
=
a
;
v1
=
a
;
}
}
if
(
v1
%
v2
)
{
if
(
v1
%
v2
)
{
console
.
log
(
"
S
teps not divisible
"
,
"
current:
"
,
v1
,
"
new:
"
,
v2
);
console
.
log
(
"
connection rejected: s
teps not divisible
"
,
"
current:
"
,
v1
,
"
new:
"
,
v2
);
return
false
;
return
false
;
}
}
...
...
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