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:
Gabriel Horner
2023-10-19 11:57:27 -04:00
parent c29bd3cd39
commit f860553d89
4 changed files with 76 additions and 42 deletions

View File

@@ -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]))