瀏覽代碼

fix: don't show file title warning for built-in files

Tienson Qin 4 年之前
父節點
當前提交
3eba1383ec
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/main/frontend/components/file.cljs

+ 5 - 4
src/main/frontend/components/file.cljs

@@ -91,10 +91,11 @@
                                                    {:page page}))))}
            page]])
 
-       [:p.text-sm.ml-1.mb-4
-        (svg/warning {:style {:width "1em"
-                              :display "inline-block"}})
-        [:span.ml-1 "Please don't remove the page's title property (you can still modify it)."]]
+       (when (and page (not (string/starts-with? page "logseq/")))
+         [:p.text-sm.ml-1.mb-4
+          (svg/warning {:style {:width "1em"
+                                :display "inline-block"}})
+          [:span.ml-1 "Please don't remove the page's title property (you can still modify it)."]])
 
        (when (and config? (state/logged?))
          [:a.mb-8.block {:on-click (fn [_e] (project/sync-project-settings!))}