Sidebars link correctly

This commit is contained in:
Bryce
2024-03-20 19:47:41 -07:00
parent 0cdf908acd
commit e914f8b994
5 changed files with 87 additions and 45 deletions

View File

@@ -307,7 +307,7 @@
"Payments"]]
:title (fn [r]
(str
(some-> r :query-params :status name str/capitalize (str " "))
(some-> r :route-params :status name str/capitalize (str " "))
"Payments"))
:entity-name "payments"
:route ::route/table
@@ -365,7 +365,7 @@
:render (fn [p]
(link-dropdown (concat (->> p :payment/invoices (map (fn [invoice]
{:link (hu/url (bidi/path-for ssr-routes/only-routes
::invoice-route/page)
::invoice-route/all-page)
{:exact-match-id (:db/id invoice)})
:content (str "Inv. " (:invoice/invoice-number invoice))})))
(some-> p :transaction/_payment ((fn [t]