enhance: prefer tag instead of class on UI

Some users are confused with Classes/Objects, so on UI it'll be
Tags/Nodes.
This commit is contained in:
Tienson Qin
2024-08-05 15:06:54 +08:00
parent 8e41e1d22c
commit 4083a2d0a0
34 changed files with 73 additions and 74 deletions

View File

@@ -1651,7 +1651,7 @@
(text-util/wrapped-by? value pos before end)))))
(defn get-matched-classes
"Return matched classes except the root class"
"Return matched classes except the root tag"
[q]
(let [classes (->> (db-model/get-all-classes (state/get-current-repo) {:except-root-class? true})
(map (fn [e] (select-keys e [:block/uuid :block/title]))))]