mirror of https://github.com/logseq/logseq
translation and property cleanup
- Caught a missing translation - QAed that the following fns should refer directly to hidden-properties and not the larger umbrella of built-in-propertiespull/6214/head
parent
b1c98ec09c
commit
9fa3f0a172
|
@ -1845,8 +1845,8 @@
|
|||
[config block]
|
||||
(let [properties (walk/keywordize-keys (:block/properties block))
|
||||
properties-order (:block/properties-order block)
|
||||
properties (apply dissoc properties (property/built-in-properties))
|
||||
properties-order (remove (property/built-in-properties) properties-order)
|
||||
properties (apply dissoc properties (property/hidden-properties))
|
||||
properties-order (remove (property/hidden-properties) properties-order)
|
||||
pre-block? (:block/pre-block? block)
|
||||
properties (if pre-block?
|
||||
(let [repo (state/get-current-repo)
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
result
|
||||
{:on-chosen chosen-handler
|
||||
:on-enter non-exist-block-handler
|
||||
:empty-placeholder [:div.text-gray-500.pl-4.pr-4 "Search for a block"]
|
||||
:empty-placeholder [:div.text-gray-500.pl-4.pr-4 (t :editor/block-search)]
|
||||
:item-render (fn [{:block/keys [page uuid]}] ;; content returned from search engine is normalized
|
||||
(let [page (or (:block/original-name page)
|
||||
(:block/name page))
|
||||
|
|
|
@ -384,7 +384,7 @@
|
|||
block (update block :block/refs remove-non-existed-refs!)
|
||||
block (attach-page-properties-if-exists! block)
|
||||
new-properties (merge
|
||||
(select-keys properties (property/built-in-properties))
|
||||
(select-keys properties (property/hidden-properties))
|
||||
(:block/properties block))]
|
||||
(-> block
|
||||
(dissoc :block/top?
|
||||
|
|
Loading…
Reference in New Issue