From a5672d8954ab2897e9e9cd1d09c63de485c6e8c8 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 30 Oct 2023 16:41:58 -0700 Subject: [PATCH] show hide --- src/clj/auto_ap/ssr/components/aside.clj | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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