From f7a7cb94f8df403416ebe063301bf0133a135472 Mon Sep 17 00:00:00 2001 From: DrJKL Date: Fri, 26 Jul 2024 18:21:10 -0700 Subject: [PATCH] Make queue button accessible (to allow for JS changes of the options) --- web/scripts/ui/menu/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/scripts/ui/menu/index.js b/web/scripts/ui/menu/index.js index 1e00b3d22..e386c9898 100644 --- a/web/scripts/ui/menu/index.js +++ b/web/scripts/ui/menu/index.js @@ -131,6 +131,8 @@ export class ComfyAppMenu { classList: "comfyui-button comfyui-menu-button", }); + this.queueMenuButton = new ComfyQueueButton(app); + this.element = $el("nav.comfyui-menu.lg", { style: { display: "none" } }, [ this.logo, this.workflows.element, @@ -141,7 +143,7 @@ export class ComfyAppMenu { collapseOnMobile(this.viewGroup).element, getInteruptButton("lt-lg-show").element, - new ComfyQueueButton(app).element, + this.queueMenuButton.element, showOnMobile(this.mobileMenuButton).element, ]);