mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: hide Edit page properties if there're class properties
This commit is contained in:
@@ -377,7 +377,8 @@
|
||||
|
||||
(when (and class-or-property?
|
||||
(not (property-handler/block-has-viewable-properties? page))
|
||||
(not config/publishing?))
|
||||
(not config/publishing?)
|
||||
(empty? (:properties (:block/schema page))))
|
||||
[:a.fade-link.flex.flex-row.items-center.gap-1.text-sm
|
||||
{:on-click #(swap! *show-page-properties? not)}
|
||||
(ui/icon (if @*show-page-properties?
|
||||
|
||||
@@ -371,7 +371,7 @@
|
||||
:close-modal? false
|
||||
:show-new-when-not-exact-match? true
|
||||
:exact-match-exclude-items exclude-properties
|
||||
:input-default-placeholder "Add a property"
|
||||
:input-default-placeholder "Add property"
|
||||
:on-chosen (fn [{:keys [value]}]
|
||||
(reset! *property-key value)
|
||||
(add-property-from-dropdown entity value (assoc opts :*show-new-property-config? *show-new-property-config?)))
|
||||
|
||||
Reference in New Issue
Block a user