mirror of https://github.com/logseq/logseq
fix: all pages table should be titled with pages
parent
4b365da70c
commit
f84a3341bd
|
@ -59,6 +59,8 @@
|
||||||
[:div.ls-all-pages.w-full
|
[:div.ls-all-pages.w-full
|
||||||
(views/view view-entity {:data data
|
(views/view view-entity {:data data
|
||||||
:set-data! set-data!
|
:set-data! set-data!
|
||||||
|
:title (let [data-count (count data)]
|
||||||
|
(str data-count (if (> data-count 1) " Pages" " Page")))
|
||||||
:columns columns
|
:columns columns
|
||||||
:on-delete-rows (fn [table selected-rows]
|
:on-delete-rows (fn [table selected-rows]
|
||||||
(shui/dialog-open!
|
(shui/dialog-open!
|
||||||
|
|
|
@ -894,7 +894,7 @@
|
||||||
(property-handler/set-block-property! repo (:db/id entity) :logseq.property/table-ordered-columns ids))))}))
|
(property-handler/set-block-property! repo (:db/id entity) :logseq.property/table-ordered-columns ids))))}))
|
||||||
|
|
||||||
(rum/defc view-inner < rum/static
|
(rum/defc view-inner < rum/static
|
||||||
[view-entity {:keys [data set-data! columns add-new-object! create-view!] :as option}]
|
[view-entity {:keys [data set-data! columns add-new-object! create-view! title] :as option}]
|
||||||
(let [[input set-input!] (rum/use-state "")
|
(let [[input set-input!] (rum/use-state "")
|
||||||
sorting (:logseq.property/table-sorting view-entity)
|
sorting (:logseq.property/table-sorting view-entity)
|
||||||
[sorting set-sorting!] (rum/use-state (or sorting [{:id :block/updated-at, :asc? false}]))
|
[sorting set-sorting!] (rum/use-state (or sorting [{:id :block/updated-at, :asc? false}]))
|
||||||
|
@ -945,7 +945,8 @@
|
||||||
[:div.flex.items-center.justify-between
|
[:div.flex.items-center.justify-between
|
||||||
(let [data-count (count (:data table))]
|
(let [data-count (count (:data table))]
|
||||||
[:div.flex.flex-row.items-center.gap-2
|
[:div.flex.flex-row.items-center.gap-2
|
||||||
[:div.font-medium (str data-count (if (> data-count 1) " Objects" " Object"))]])
|
[:div.font-medium (or title
|
||||||
|
(str data-count (if (> data-count 1) " Objects" " Object")))]])
|
||||||
[:div.flex.items-center.gap-1
|
[:div.flex.items-center.gap-1
|
||||||
|
|
||||||
(filter-properties columns table)
|
(filter-properties columns table)
|
||||||
|
|
Loading…
Reference in New Issue