fix: a number of editing actions in publishing app

Creating items from cmdk, more property config fields, action items from
page title, adding rows to table and property related shortcuts
This commit is contained in:
Gabriel Horner
2024-10-31 15:40:36 -04:00
parent 0036a5d9de
commit c22dab0d2f
5 changed files with 93 additions and 82 deletions

View File

@@ -75,7 +75,7 @@
(string/replace input #"^#+" ""))
(defn create-items [q]
(when-not (string/blank? q)
(when (and (not (string/blank? q)) (not config/publishing?))
(let [class? (string/starts-with? q "#")]
(->> [{:text (if class? "Create tag" "Create page") :icon "new-page"
:icon-theme :gray