diff --git a/src/clj/auto_ap/ssr/components/aside.clj b/src/clj/auto_ap/ssr/components/aside.clj index ac0a0173..540487cc 100644 --- a/src/clj/auto_ap/ssr/components/aside.clj +++ b/src/clj/auto_ap/ssr/components/aside.clj @@ -230,13 +230,15 @@ :href (bidi/path-for ssr-routes/only-routes :admin-jobs)} "Background Jobs")] - [:li - (menu-button- {:aria-controls "dropdown-import" - :data-collapse-toggle "dropdown-import" - :icon svg/arrow-in} + [:li {:x-data (hx/json {:open false}) + } + (menu-button- {:icon svg/arrow-in + "@click" "open = !open"} "Import") - (sub-menu- {:id "dropdown-import"} + (sub-menu- {:id "dropdown-import" + :x-show "open" + } (menu-button- {:href (bidi/path-for client-routes/routes :admin-excel-import)} "Excel Invoices") (menu-button- {:href (bidi/path-for client-routes/routes