mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
fix: show tag's extends when auto-complete or setting extends
fixes https://github.com/logseq/db-test/issues/466
This commit is contained in:
@@ -709,17 +709,17 @@
|
||||
(remove (fn [e] (contains? exclude-ids (:block/uuid e)))))]
|
||||
excluded-options)
|
||||
|
||||
(contains? #{:class :property} property-type)
|
||||
(let [classes (cond->
|
||||
(model/get-all-classes
|
||||
repo
|
||||
{:except-root-class? true
|
||||
:except-private-tags? (not (contains? #{:logseq.property/template-applied-to} (:db/ident property)))})
|
||||
(not (or (and (entity-util/page? block) (not (ldb/internal-page? block))) (:logseq.property/created-from-property block)))
|
||||
(conj (db/entity :logseq.class/Page)))]
|
||||
(if (= property-type :class)
|
||||
classes
|
||||
(property-handler/get-class-property-choices)))
|
||||
(= :class property-type)
|
||||
(cond->
|
||||
(model/get-all-classes
|
||||
repo
|
||||
{:except-root-class? true
|
||||
:except-private-tags? (not (contains? #{:logseq.property/template-applied-to} (:db/ident property)))})
|
||||
(not (or (and (entity-util/page? block) (not (ldb/internal-page? block))) (:logseq.property/created-from-property block)))
|
||||
(conj (db/entity :logseq.class/Page)))
|
||||
|
||||
(= :property property-type)
|
||||
(property-handler/get-class-property-choices)
|
||||
|
||||
(seq classes)
|
||||
(->>
|
||||
|
||||
Reference in New Issue
Block a user