fix: allow users to see built-in property config again

This commit is contained in:
Gabriel Horner
2023-09-13 12:05:47 -04:00
parent 1e1fb0f67f
commit 76870a3b0e
2 changed files with 4 additions and 4 deletions

View File

@@ -363,7 +363,6 @@
:else title))]]]
(when (and @*hover?
db-based?
(not built-in-property?)
(not @*edit?))
[:div.absolute.bottom-2.left-0
[:div.flex.flex-row.items-center.flex-wrap.ml-2
@@ -609,7 +608,7 @@
(plugins/hook-ui-slot :page-head-actions-slotted nil)
(plugins/hook-ui-items :pagebar)]))])
(when (and db-based? (not built-in-property?) @*configure-show?)
(when (and db-based? @*configure-show?)
(if (and (= "property" (:block/type page)) (not config/publishing?))
(do
(state/set-modal! #(property/property-config repo page {}))

View File

@@ -128,8 +128,9 @@
[:div.grid.grid-cols-4.gap-1.leading-8
[:label.col-span-1 "Schema type:"]
(let [schema-types (->> property-handler/user-face-builtin-schema-types
(remove property-handler/internal-builtin-schema-types)
(let [schema-types (->> (concat property-handler/user-face-builtin-schema-types
(when built-in-property?
property-handler/internal-builtin-schema-types))
(map (comp string/capitalize name))
(map (fn [type]
{:label (if (= type "Default") "Text" type)