hides link

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

View File

@@ -285,6 +285,7 @@
(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"))
(when (is-admin? (:identity request))
(menu-button- {:href (hu/url (bidi/path-for ssr-routes/only-routes (menu-button- {:href (hu/url (bidi/path-for ssr-routes/only-routes
::ledger-routes/external-page) ::ledger-routes/external-page)
{:date-range "month"}) {:date-range "month"})
@@ -292,11 +293,10 @@
:hx-boost "true"} :hx-boost "true"}
[:div.flex.gap-2 [:div.flex.gap-2
"External Register" "External Register"
(tags/pill- {:color :secondary} "WIP")]) (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