mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
enhance: add enum choices to built-in table properties
Also hide all built-in table properties like we do for file graphs
This commit is contained in:
@@ -61,3 +61,8 @@
|
||||
db-property/built-in-properties-keys))]
|
||||
(swap! *db-built-in-properties assoc repo built-in-properties)))
|
||||
(set/subset? (set properties) (get @*db-built-in-properties repo))))
|
||||
|
||||
(defn enum-value
|
||||
"Given an enum ent and the value's uuid, return the value's string"
|
||||
[ent value-uuid]
|
||||
(get-in ent [:block/schema :enum-config :values value-uuid :name]))
|
||||
Reference in New Issue
Block a user