mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
enhance: add switch between page and class/property properties
This commit is contained in:
@@ -163,3 +163,11 @@
|
||||
(concat own-properties)
|
||||
(filter (fn [id] (enum-other-position? id (:block/properties block))))
|
||||
(distinct))))
|
||||
|
||||
(defn block-has-viewable-properties?
|
||||
[block-entity]
|
||||
(let [properties (:block/properties block-entity)]
|
||||
(or
|
||||
(seq (:block/alias properties))
|
||||
(and (seq properties)
|
||||
(not= (keys properties) [(:block/uuid (db/entity [:block/name "icon"]))])))))
|
||||
|
||||
Reference in New Issue
Block a user