Browse Source

enhance: display tags for Root table

Makes Root table more useful as one easily see this is a table of all
objects and see their types/tags
Gabriel Horner 1 year ago
parent
commit
df977bc275
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/frontend/components/objects.cljs

+ 3 - 1
src/main/frontend/components/objects.cljs

@@ -98,7 +98,9 @@
   (when class
     (let [class (db/sub-block (:db/id class))
           config {:container-id (:container-id state)}
-          properties (outliner-property/get-class-properties class)
+          properties (cond->> (outliner-property/get-class-properties class)
+                       (= :logseq.class/Root (:db/ident class))
+                       (concat [(db/entity :block/tags)]))
           repo (state/get-current-repo)
           objects (->> (db-model/sub-class-objects repo (:db/id class))
                        (map (fn [row] (assoc row :id (:db/id row)))))]