From a034f80f37da855a58d49722cd08479dbe4a891a Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Thu, 14 May 2026 23:12:41 +0800 Subject: [PATCH] fix(regression): property config --- .../frontend/components/property/config.cljs | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/main/frontend/components/property/config.cljs b/src/main/frontend/components/property/config.cljs index 38f98e85e3..27d1eacd30 100644 --- a/src/main/frontend/components/property/config.cljs +++ b/src/main/frontend/components/property/config.cljs @@ -933,19 +933,21 @@ (set (map :db/id (:logseq.property/checkbox-display-properties owner-block))) (:db/id property))] (dropdown-editor-menuitem - {:icon :checkbox}) - :title (if class-schema? (t :property/show-as-checkbox-on-tagged-nodes) (t :property/show-as-checkbox-on-node)) - :disabled? config/publishing? - :desc (when owner-block - (shui/switch - {:id "show as checkbox" :size "sm" - :checked checked? - :on-click util/stop-propagation - :on-checked-change - (fn [value] - (if value - (db-property-handler/set-block-property! (:db/id owner-block) :logseq.property/checkbox-display-properties (:db/id property)) - (db-property-handler/delete-property-value! (:db/id owner-block) :logseq.property/checkbox-display-properties (:db/id property))))})))))) + {:icon :checkbox + :title (if class-schema? + (t :property/show-as-checkbox-on-tagged-nodes) + (t :property/show-as-checkbox-on-node)) + :disabled? config/publishing? + :desc (when owner-block + (shui/switch + {:id "show as checkbox" :size "sm" + :checked checked? + :on-click util/stop-propagation + :on-checked-change + (fn [value] + (if value + (db-property-handler/set-block-property! (:db/id owner-block) :logseq.property/checkbox-display-properties (:db/id property)) + (db-property-handler/delete-property-value! (:db/id owner-block) :logseq.property/checkbox-display-properties (:db/id property))))}))}))))) (when (and owner-block ;; Any property should be removable from Tag Properties