hides link

This commit is contained in:
2024-08-24 23:13:21 -07:00
parent bb7e0abeed
commit c0d173125c

View File

@@ -285,18 +285,18 @@
(tags/pill- {:color :secondary} "WIP")]) (tags/pill- {:color :secondary} "WIP")])
(menu-button- {:href (bidi/path-for client-routes/routes (menu-button- {:href (bidi/path-for client-routes/routes
:ledger)} "Register")) :ledger)} "Register"))
(menu-button- {:href (hu/url (bidi/path-for ssr-routes/only-routes (when (is-admin? (:identity request))
::ledger-routes/external-page) (menu-button- {:href (hu/url (bidi/path-for ssr-routes/only-routes
{:date-range "month"}) ::ledger-routes/external-page)
:active? (= ::ledger-routes/external-page (:matched-route request)) {:date-range "month"})
:hx-boost "true"} :active? (= ::ledger-routes/external-page (:matched-route request))
[:div.flex.gap-2 :hx-boost "true"}
"External Register" [:div.flex.gap-2
(tags/pill- {:color :secondary} "WIP")]) "External Register"
(tags/pill- {:color :secondary} "WIP")]))
(when (is-admin? (:identity request)) (when (is-admin? (:identity request))
(menu-button- {:href (bidi/path-for client-routes/routes (menu-button- {:href (bidi/path-for client-routes/routes
:ledger)} "Old Register") :ledger)} "Old Register"))
)
(menu-button- {:href (bidi/path-for client-routes/routes (menu-button- {:href (bidi/path-for client-routes/routes
:profit-and-loss)} "Profit & Loss") :profit-and-loss)} "Profit & Loss")
(menu-button- {:href (bidi/path-for client-routes/routes (menu-button- {:href (bidi/path-for client-routes/routes