Commit 29cee297 authored by m957ymj75urz's avatar m957ymj75urz
Browse files

ignore/restore custom batch count when extra options is unchecked

parent a1b30f10
......@@ -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" }}, [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment