|
|
@@ -67,7 +67,7 @@
|
|
|
:value (:block/uuid class)})
|
|
|
classes)
|
|
|
opts {:items options
|
|
|
- :input-default-placeholder (if multiple-choices? "Choose classes" "Choose class")
|
|
|
+ :input-default-placeholder (if multiple-choices? "Choose tags" "Choose tag")
|
|
|
:dropdown? false
|
|
|
:close-modal? false
|
|
|
:multiple-choices? multiple-choices?
|
|
|
@@ -112,7 +112,7 @@
|
|
|
|
|
|
(defn- handle-delete-property!
|
|
|
[block property & {:keys [class? class-schema?]}]
|
|
|
- (let [class? (or class? (= (:block/type block) "class"))
|
|
|
+ (let [class? (or class? (= (:block/type block) "tag"))
|
|
|
remove! #(let [repo (state/get-current-repo)]
|
|
|
(if (and class? class-schema?)
|
|
|
(db-property-handler/class-remove-property! (:db/id block) (:db/id property))
|
|
|
@@ -130,7 +130,7 @@
|
|
|
[entity property-uuid-or-name schema {:keys [class-schema? page-configure?]}]
|
|
|
(p/let [repo (state/get-current-repo)
|
|
|
;; Both conditions necessary so that a class can add its own page properties
|
|
|
- add-class-property? (and (= (:block/type entity) "class") page-configure? class-schema?)
|
|
|
+ add-class-property? (and (= (:block/type entity) "tag") page-configure? class-schema?)
|
|
|
result (when (uuid? property-uuid-or-name)
|
|
|
(db-async/<get-block repo property-uuid-or-name {:children? false}))
|
|
|
;; In block context result is in :block
|
|
|
@@ -192,7 +192,7 @@
|
|
|
(reset! *show-new-property-config? :adding-property))
|
|
|
(p/let [property' (when block (<add-property-from-dropdown block property-name schema opts))
|
|
|
property (or property' property)
|
|
|
- add-class-property? (and (= (:block/type block) "class") page-configure? class-schema?)]
|
|
|
+ add-class-property? (and (= (:block/type block) "tag") page-configure? class-schema?)]
|
|
|
(when *property (reset! *property property))
|
|
|
(p/do!
|
|
|
(when *show-new-property-config? (reset! *show-new-property-config? false))
|
|
|
@@ -327,7 +327,7 @@
|
|
|
:node
|
|
|
(when (empty? (:property/closed-values property))
|
|
|
[:div.grid.grid-cols-5.gap-1.items-center.leading-8
|
|
|
- [:label.col-span-2 "Specify classes:"]
|
|
|
+ [:label.col-span-2 "Specify tags:"]
|
|
|
(class-select property (assoc opts :disabled? disabled?))])
|
|
|
|
|
|
|
|
|
@@ -471,7 +471,7 @@
|
|
|
(reset! *show-new-property-config? true))
|
|
|
(reset! *property property)
|
|
|
(when property
|
|
|
- (let [add-class-property? (and (= (:block/type block) "class") class-schema?)
|
|
|
+ (let [add-class-property? (and (= (:block/type block) "tag") class-schema?)
|
|
|
type (get-in property [:block/schema :type])]
|
|
|
(cond
|
|
|
add-class-property?
|