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

@@ -73,7 +73,7 @@
(defn create-items [q]
(when-not (string/blank? q)
(let [class? (string/starts-with? q "#")]
(->> [{:text (if class? "Create class" "Create page") :icon "new-page"
(->> [{:text (if class? "Create tag" "Create page") :icon "new-page"
:icon-theme :gray
:info (if class?
(str "Create class called '" (get-class-from-input q) "'")