Tienson Qin 7 месяцев назад
Родитель
Сommit
6182c2f36a

+ 1 - 1
clj-e2e/test/logseq/e2e/commands_basic_test.clj

@@ -43,7 +43,7 @@
       (k/enter)
       (k/enter)
       (is (string/includes? (util/get-edit-content) "[["))
       (is (string/includes? (util/get-edit-content) "[["))
       (util/exit-edit)
       (util/exit-edit)
-      (is (= "b1" (util/get-text ".block-ref"))))))
+      (is (= "b1" (.textContent (second (w/query "a.page-ref"))))))))
 
 
 (deftest link-test
 (deftest link-test
   (testing "/link"
   (testing "/link"

+ 1 - 2
deps/db/src/logseq/db/frontend/entity_util.cljs

@@ -65,8 +65,7 @@
    (when page
    (when page
      (if (string? page)
      (if (string? page)
        (string/starts-with? page "$$$")
        (string/starts-with? page "$$$")
-       (when (and (or (map? page) (de/entity? page))
-                  (not (property? page)))
+       (when (or (map? page) (de/entity? page))
          (:logseq.property/hide? page))))))
          (:logseq.property/hide? page))))))
 
 
 (defn object?
 (defn object?

+ 1 - 1
src/main/frontend/handler/route.cljs

@@ -84,7 +84,7 @@
      (let [page (db/get-page page-name)
      (let [page (db/get-page page-name)
            whiteboard? (db/whiteboard-page? page)]
            whiteboard? (db/whiteboard-page? page)]
        (if (and (not config/dev?)
        (if (and (not config/dev?)
-                (or (ldb/hidden? page)
+                (or (and (ldb/hidden? page) (not (ldb/property? page)))
                     (and (ldb/built-in? page) (ldb/private-built-in-page? page))))
                     (and (ldb/built-in? page) (ldb/private-built-in-page? page))))
          (notification/show! "Cannot go to an internal page." :warning)
          (notification/show! "Cannot go to an internal page." :warning)
          (if-let [source (and (not ignore-alias?) (db/get-alias-source-page (state/get-current-repo) (:db/id page)))]
          (if-let [source (and (not ignore-alias?) (db/get-alias-source-page (state/get-current-repo) (:db/id page)))]

+ 1 - 1
src/main/frontend/state.cljs

@@ -1877,7 +1877,7 @@ Similar to re-frame subscriptions"
       (if (and page
       (if (and page
                ;; TODO: Use config/dev? when it's not a circular dep
                ;; TODO: Use config/dev? when it's not a circular dep
                (not goog.DEBUG)
                (not goog.DEBUG)
-               (or (ldb/hidden? page)
+               (or (and (ldb/hidden? page) (not (ldb/property? page)))
                    (and (ldb/built-in? page) (ldb/private-built-in-page? page))))
                    (and (ldb/built-in? page) (ldb/private-built-in-page? page))))
         (pub-event! [:notification/show {:content "Cannot open an internal page." :status :warning}])
         (pub-event! [:notification/show {:content "Cannot open an internal page." :status :warning}])
         (when db-id
         (when db-id