Adds totals

This commit is contained in:
Bryce
2024-04-11 13:18:45 -07:00
parent 2fb49d3331
commit 6031f15246
3 changed files with 55 additions and 18 deletions

View File

@@ -83,8 +83,9 @@
:sort sort)
(let [start (or start 0)
per-page (or per-page 25)
[entities total] ((:fetch-page grid-spec)
request)]
[entities total :as page-results] ((:fetch-page grid-spec)
request)
request (assoc request :page-results page-results)]
(com/data-grid-card {:id (:id grid-spec)
:title (if (string? (:title grid-spec))