Remove :block/uuid and :block/name for properties

This commit is contained in:
Tienson Qin
2024-03-28 17:37:28 +08:00
parent ce8c13065c
commit 8d31f94b24
19 changed files with 104 additions and 120 deletions

View File

@@ -129,10 +129,10 @@
(defn update-hl-block!
[highlight]
(when-let [block (db-model/get-block-by-uuid (:id highlight))]
(doseq [[k v] {:hl-stamp (if (area-highlight? highlight)
(get-in highlight [:content :image])
(js/Date.now))
:hl-color (get-in highlight [:properties :color])}]
(doseq [[k v] {:logseq.property/hl-stamp (if (area-highlight? highlight)
(get-in highlight [:content :image])
(js/Date.now))
:logseq.property/hl-color (get-in highlight [:properties :color])}]
(property-handler/set-block-property! (state/get-current-repo) (:block/uuid block) k v))))
(defn unlink-hl-area-image$