浏览代码

raname ":exclude-in-graph" to ":exclude-from-graph-view"

- raname ":exclude-in-graph" to ":exclude-from-graph-view"
- add ":exclude-from-graph-view" in "editable-built-in-properties"
8N9KT 3 年之前
父节点
当前提交
f79888b4d8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      deps/graph-parser/src/logseq/graph_parser/property.cljs
  2. 1 1
      src/main/frontend/handler/graph.cljs

+ 1 - 1
deps/graph-parser/src/logseq/graph_parser/property.cljs

@@ -33,7 +33,7 @@
 (defn editable-built-in-properties
 (defn editable-built-in-properties
   "Properties used by logseq that user can edit"
   "Properties used by logseq that user can edit"
   []
   []
-  (into #{:title :icon :template :template-including-parent :public :filters}
+  (into #{:title :icon :template :template-including-parent :public :filters :exclude-from-graph-view}
         editable-linkable-built-in-properties))
         editable-linkable-built-in-properties))
 
 
 (defn hidden-built-in-properties
 (defn hidden-built-in-properties

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

@@ -98,7 +98,7 @@
 
 
            pages-after-exclude-filter (cond->> pages-after-journal-filter
            pages-after-exclude-filter (cond->> pages-after-journal-filter
                                         (not excluded-pages?)
                                         (not excluded-pages?)
-                                        (remove (fn [p] (=  true (:exclude-in-graph (:block/properties p))))))
+                                        (remove (fn [p] (=  true (:exclude-from-graph-view (:block/properties p))))))
 
 
             links (concat (seq relation)
             links (concat (seq relation)
                           (seq tagged-pages)
                           (seq tagged-pages)