mirror of
https://github.com/logseq/logseq.git
synced 2026-05-29 15:09:41 +00:00
fix(regression): file graphs can see and filter page type on all pages
This commit is contained in:
@@ -21,6 +21,14 @@
|
||||
:cell (fn [_table row _column]
|
||||
(component-block/page-cp {} row))
|
||||
:type :string}
|
||||
(when (not (config/db-based-graph? (state/get-current-repo)))
|
||||
{:id :block/type
|
||||
:name "Page type"
|
||||
:cell (fn [_table row _column]
|
||||
(let [type (get row :block/type)]
|
||||
[:div.capitalize type]))
|
||||
:get-value (fn [row] (get row :block/type))
|
||||
:type :string})
|
||||
{:id :block.temp/refs-count
|
||||
:name (t :page/backlinks)
|
||||
:cell (fn [_table row _column] (:block.temp/refs-count row))
|
||||
|
||||
Reference in New Issue
Block a user