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