File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
deps/outliner/src/logseq/outliner
src/main/frontend/handler/db_based Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 3737 :payload {:message " Page name can't be blank."
3838 :type :warning }})))))
3939
40- (def ^:api uneditable-page? ldb /built-in? )
41-
4240(defn- find-other-ids-with-title-and-tags
4341 " Query that finds other ids given the id to ignore, title to look up and tags to consider"
4442 [entity]
Original file line number Diff line number Diff line change 1111 [frontend.state :as state]
1212 [logseq.common.util :as common-util]
1313 [logseq.common.util.page-ref :as page-ref]
14- [logseq.db]
14+ [logseq.db :as ldb ]
1515 [logseq.db.frontend.class :as db-class]
1616 [logseq.db.frontend.content :as db-content]
1717 [logseq.outliner.validate :as outliner-validate]
4949 (notification/show! (str " A tag with the name \" " (:block/title page-entity) " \" already exists." ) :warning false )
5050 (:block/parent page-entity)
5151 (notification/show! " Namespaced pages can't be tags" :error false )
52- (outliner-validate/uneditable-page ? page-entity)
52+ (ldb/built-in ? page-entity)
5353 (notification/show! " Built-in pages can't be used as tags" :error )
5454 :else
5555 (let [txs [(db-class/build-new-class (db/get-db )
6464 [entity]
6565 (cond (db/page-exists? (:block/title entity) #{:logseq.class/Page })
6666 (notification/show! (str " A page with the name \" " (:block/title entity) " \" already exists." ) :warning false )
67- (outliner-validate/uneditable-page ? entity)
67+ (ldb/built-in ? entity)
6868 (notification/show! " Built-in tags can't be converted to pages" :error )
6969 :else
7070 (if (seq (:logseq.property.class/_extends entity))
You can’t perform that action at this time.
0 commit comments