fix(regression): file graphs can see and filter page type on all pages

This commit is contained in:
Gabriel Horner
2024-12-17 14:58:44 -05:00
parent 4897519815
commit de339cb6f7

View File

@@ -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))