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
29cee297
Commit
29cee297
authored
Mar 15, 2023
by
m957ymj75urz
Browse files
ignore/restore custom batch count when extra options is unchecked
parent
a1b30f10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
web/scripts/ui.js
web/scripts/ui.js
+6
-1
No files found.
web/scripts/ui.js
View file @
29cee297
...
...
@@ -258,7 +258,12 @@ export class ComfyUI {
$el
(
"
button.comfy-queue-btn
"
,
{
textContent
:
"
Queue Prompt
"
,
onclick
:
()
=>
app
.
queuePrompt
(
0
,
this
.
batchCount
)
}),
$el
(
"
div
"
,
{},
[
$el
(
"
label
"
,
{
innerHTML
:
"
Extra options
"
},
[
$el
(
"
input
"
,
{
type
:
"
checkbox
"
,
onchange
:
(
i
)
=>
document
.
getElementById
(
'
extraOptions
'
).
style
.
visibility
=
i
.
srcElement
.
checked
?
"
visible
"
:
"
collapse
"
})
$el
(
"
input
"
,
{
type
:
"
checkbox
"
,
onchange
:
(
i
)
=>
{
document
.
getElementById
(
'
extraOptions
'
).
style
.
visibility
=
i
.
srcElement
.
checked
?
"
visible
"
:
"
collapse
"
;
this
.
batchCount
=
i
.
srcElement
.
checked
?
document
.
getElementById
(
'
batchCountInputRange
'
).
value
:
1
;
}
})
])
]),
$el
(
"
div
"
,
{
id
:
"
extraOptions
"
,
style
:
{
width
:
"
100%
"
,
visibility
:
"
collapse
"
}},
[
...
...
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