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
a1b30f10
Commit
a1b30f10
authored
Mar 14, 2023
by
m957ymj75urz
Browse files
toggle extra options
parent
67795e40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
web/scripts/ui.js
web/scripts/ui.js
+7
-4
No files found.
web/scripts/ui.js
View file @
a1b30f10
...
@@ -255,25 +255,28 @@ export class ComfyUI {
...
@@ -255,25 +255,28 @@ export class ComfyUI {
$el
(
"
span
"
,
{
$
:
(
q
)
=>
(
this
.
queueSize
=
q
)
}),
$el
(
"
span
"
,
{
$
:
(
q
)
=>
(
this
.
queueSize
=
q
)
}),
$el
(
"
button.comfy-settings-btn
"
,
{
textContent
:
"
⚙️
"
,
onclick
:
()
=>
this
.
settings
.
show
()
}),
$el
(
"
button.comfy-settings-btn
"
,
{
textContent
:
"
⚙️
"
,
onclick
:
()
=>
this
.
settings
.
show
()
}),
]),
]),
$el
(
"
div
"
,
{
style
:
{
width
:
"
100%
"
}},
[
$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
(
"
div
"
,
{
id
:
"
extraOptions
"
,
style
:
{
width
:
"
100%
"
,
visibility
:
"
collapse
"
}},
[
$el
(
"
label
"
,
{
innerHTML
:
"
Batch count
"
},
[
$el
(
"
label
"
,
{
innerHTML
:
"
Batch count
"
},
[
$el
(
"
input
"
,
{
id
:
"
batchCountInputNumber
"
,
type
:
"
number
"
,
value
:
this
.
batchCount
,
min
:
"
1
"
,
style
:
{
width
:
"
35%
"
,
"
margin-left
"
:
"
0.4em
"
},
$el
(
"
input
"
,
{
id
:
"
batchCountInputNumber
"
,
type
:
"
number
"
,
value
:
this
.
batchCount
,
min
:
"
1
"
,
style
:
{
width
:
"
35%
"
,
"
margin-left
"
:
"
0.4em
"
},
oninput
:
(
i
)
=>
{
oninput
:
(
i
)
=>
{
this
.
batchCount
=
i
.
target
.
value
;
this
.
batchCount
=
i
.
target
.
value
;
document
.
getElementById
(
'
batchCountInputRange
'
).
value
=
this
.
batchCount
;
document
.
getElementById
(
'
batchCountInputRange
'
).
value
=
this
.
batchCount
;
console
.
log
(
"
number
"
);
}
}
}),
}),
$el
(
"
input
"
,
{
id
:
"
batchCountInputRange
"
,
type
:
"
range
"
,
min
:
"
1
"
,
max
:
"
100
"
,
value
:
this
.
batchCount
,
$el
(
"
input
"
,
{
id
:
"
batchCountInputRange
"
,
type
:
"
range
"
,
min
:
"
1
"
,
max
:
"
100
"
,
value
:
this
.
batchCount
,
oninput
:
(
i
)
=>
{
oninput
:
(
i
)
=>
{
this
.
batchCount
=
i
.
srcElement
.
value
;
this
.
batchCount
=
i
.
srcElement
.
value
;
document
.
getElementById
(
'
batchCountInputNumber
'
).
value
=
i
.
srcElement
.
value
;
document
.
getElementById
(
'
batchCountInputNumber
'
).
value
=
i
.
srcElement
.
value
;
console
.
log
(
"
range
"
);
}
}
}),
}),
]),
]),
]),
]),
$el
(
"
button.comfy-queue-btn
"
,
{
textContent
:
"
Queue Prompt
"
,
onclick
:
()
=>
app
.
queuePrompt
(
0
,
this
.
batchCount
)
}),
$el
(
"
div.comfy-menu-btns
"
,
[
$el
(
"
div.comfy-menu-btns
"
,
[
$el
(
"
button
"
,
{
textContent
:
"
Queue Front
"
,
onclick
:
()
=>
app
.
queuePrompt
(
-
1
,
this
.
batchCount
)
}),
$el
(
"
button
"
,
{
textContent
:
"
Queue Front
"
,
onclick
:
()
=>
app
.
queuePrompt
(
-
1
,
this
.
batchCount
)
}),
$el
(
"
button
"
,
{
$el
(
"
button
"
,
{
...
...
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