mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: lint
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
[frontend.state :as state]
|
||||
[logseq.common.util :as common-util]
|
||||
[logseq.common.util.page-ref :as page-ref]
|
||||
[logseq.db]
|
||||
[logseq.db :as ldb]
|
||||
[logseq.db.frontend.class :as db-class]
|
||||
[logseq.db.frontend.content :as db-content]
|
||||
[logseq.outliner.validate :as outliner-validate]
|
||||
@@ -49,7 +49,7 @@
|
||||
(notification/show! (str "A tag with the name \"" (:block/title page-entity) "\" already exists.") :warning false)
|
||||
(:block/parent page-entity)
|
||||
(notification/show! "Namespaced pages can't be tags" :error false)
|
||||
(outliner-validate/uneditable-page? page-entity)
|
||||
(ldb/built-in? page-entity)
|
||||
(notification/show! "Built-in pages can't be used as tags" :error)
|
||||
:else
|
||||
(let [txs [(db-class/build-new-class (db/get-db)
|
||||
@@ -64,7 +64,7 @@
|
||||
[entity]
|
||||
(cond (db/page-exists? (:block/title entity) #{:logseq.class/Page})
|
||||
(notification/show! (str "A page with the name \"" (:block/title entity) "\" already exists.") :warning false)
|
||||
(outliner-validate/uneditable-page? entity)
|
||||
(ldb/built-in? entity)
|
||||
(notification/show! "Built-in tags can't be converted to pages" :error)
|
||||
:else
|
||||
(if (seq (:logseq.property.class/_extends entity))
|
||||
|
||||
Reference in New Issue
Block a user