Make queue button accessible (to allow for JS changes of the options)

This commit is contained in:
DrJKL 2024-07-26 18:21:10 -07:00
parent f87810cd3e
commit f7a7cb94f8

View File

@ -131,6 +131,8 @@ export class ComfyAppMenu {
classList: "comfyui-button comfyui-menu-button", classList: "comfyui-button comfyui-menu-button",
}); });
this.queueMenuButton = new ComfyQueueButton(app);
this.element = $el("nav.comfyui-menu.lg", { style: { display: "none" } }, [ this.element = $el("nav.comfyui-menu.lg", { style: { display: "none" } }, [
this.logo, this.logo,
this.workflows.element, this.workflows.element,
@ -141,7 +143,7 @@ export class ComfyAppMenu {
collapseOnMobile(this.viewGroup).element, collapseOnMobile(this.viewGroup).element,
getInteruptButton("lt-lg-show").element, getInteruptButton("lt-lg-show").element,
new ComfyQueueButton(app).element, this.queueMenuButton.element,
showOnMobile(this.mobileMenuButton).element, showOnMobile(this.mobileMenuButton).element,
]); ]);