Agent Zero AI framework
fix for dropdown confirm handler
Alessandro517c8352c52c
diff --git a/webui/components/sidebar/sidebar-store.js b/webui/components/sidebar/sidebar-store.jsindex e27e0f94d..eb10c1df1 100644--- a/webui/components/sidebar/sidebar-store.js+++ b/webui/components/sidebar/sidebar-store.js@@ -110,7 +110,8 @@ const model = {},menuClick(event, panelElement) {- if (this.menuOpen && panelElement && !panelElement.contains(event.target)) {+ if (!this.menuOpen || !panelElement) return;+ if (!panelElement.contains(event.target)) {this.menuClose();}},diff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.htmlindex 1f4924d05..6987d8af1 100644--- a/webui/components/sidebar/top-section/header-icons.html+++ b/webui/components/sidebar/top-section/header-icons.html@@ -62,7 +62,13 @@</button></div>- <div class="dropdown-menu quick-actions-dropdown" x-show="$store.sidebar.menuOpen" :style="$store.sidebar.dropdownStyle">+ <!-- Stop propagation so @click.window menuClick does not treat in-menu clicks as outside the header panel (fixed menu + confirm flow). -->+ <div+ class="dropdown-menu quick-actions-dropdown"+ x-show="$store.sidebar.menuOpen"+ :style="$store.sidebar.dropdownStyle"+ @click.stop+ ><div id="sidebar-quick-actions-dropdown-slot-start"></div><div class="dropdown-header">Navigation</div>diff --git a/webui/components/sidebar/top-section/quick-actions.html b/webui/components/sidebar/top-section/quick-actions.htmlindex 1c6fbfb83..a329ee9ba 100644--- a/webui/components/sidebar/top-section/quick-actions.html+++ b/webui/components/sidebar/top-section/quick-actions.html@@ -121,12 +121,18 @@background-color: rgba(155, 155, 155, 0.7);}- /* Dropdown item icon sizing */- .quick-actions-dropdown .dropdown-item,- .quick-actions-dropdown .dropdown-item .material-symbols-outlined {+ /* Dropdown item icon sizing (do not override disabled opacity from index.css) */+ .quick-actions-dropdown .dropdown-item:not(:disabled),+ .quick-actions-dropdown .dropdown-item:not(:disabled) .material-symbols-outlined {opacity: 1;}+ .quick-actions-dropdown .dropdown-item:disabled,+ .quick-actions-dropdown .dropdown-item:disabled .material-symbols-outlined {+ opacity: 0.4;+ cursor: not-allowed;+ }+.quick-actions-dropdown .dropdown-item .material-symbols-outlined {font-size: 18px;}