mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: when publishing display page properties before class ones
Emphasis should be on the few page properties when reading about a page. This was the behavior before properties got moved to configure modal
This commit is contained in:
@@ -580,26 +580,47 @@
|
||||
page
|
||||
(str edit-input-id-prefix "-page")
|
||||
(assoc configure-opts :class-schema? false))])
|
||||
[:div.flex.flex-col.gap-4
|
||||
(when has-class-properties?
|
||||
[:div
|
||||
(when has-viewable-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Class properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-schema")
|
||||
(assoc configure-opts :class-schema? true))])
|
||||
(if config/publishing?
|
||||
[:div.flex.flex-col.gap-4
|
||||
(when has-viewable-properties?
|
||||
[:div
|
||||
(when has-class-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Page properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-page")
|
||||
{:selected? false
|
||||
:page-configure? false
|
||||
:class-schema? false})])
|
||||
(when has-class-properties?
|
||||
[:div
|
||||
(when has-viewable-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Class properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-schema")
|
||||
(assoc configure-opts :class-schema? true))])]
|
||||
|
||||
(when has-viewable-properties?
|
||||
[:div
|
||||
(when has-class-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Page properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-page")
|
||||
{:selected? false
|
||||
:page-configure? false
|
||||
:class-schema? false})])])])))
|
||||
[:div.flex.flex-col.gap-4
|
||||
(when has-class-properties?
|
||||
[:div
|
||||
(when has-viewable-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Class properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-schema")
|
||||
(assoc configure-opts :class-schema? true))])
|
||||
|
||||
(when has-viewable-properties?
|
||||
[:div
|
||||
(when has-class-properties?
|
||||
[:div.mb-1.opacity-70.font-medium.text-sm "Page properties:"])
|
||||
(component-block/db-properties-cp {:editor-box editor/box}
|
||||
page
|
||||
(str edit-input-id-prefix "-page")
|
||||
{:selected? false
|
||||
:page-configure? false
|
||||
:class-schema? false})])]))])))
|
||||
|
||||
(rum/defc page-properties-react < rum/reactive
|
||||
[page* page-opts]
|
||||
|
||||
Reference in New Issue
Block a user