|
|
@@ -56,7 +56,6 @@
|
|
|
[frontend.handler.user :as user-handler]
|
|
|
[frontend.handler.property.util :as pu]
|
|
|
[frontend.handler.db-based.property.util :as db-pu]
|
|
|
- [frontend.handler.file-based.property.util :as property-util]
|
|
|
[frontend.handler.property :as property-handler]
|
|
|
[frontend.handler.file-based.nfs :as nfs-handler]
|
|
|
[frontend.handler.code :as code-handler]
|
|
|
@@ -846,19 +845,6 @@
|
|
|
(defmethod handle :graph/save-db-to-disk [[_ _opts]]
|
|
|
(persist-db/export-current-graph! {:succ-notification? true}))
|
|
|
|
|
|
-(defmethod handle :search/transact-data [[_ repo data]]
|
|
|
- (let [file-based? (config/local-file-based-graph? repo)
|
|
|
- data' (cond-> data
|
|
|
- file-based?
|
|
|
- ;; remove built-in properties from content
|
|
|
- (update :blocks-to-add
|
|
|
- (fn [blocks]
|
|
|
- (map #(update % :content
|
|
|
- (fn [content]
|
|
|
- (property-util/remove-built-in-properties (get % :format :markdown) content)))
|
|
|
- blocks))))]
|
|
|
- (search/transact-blocks! repo data')))
|
|
|
-
|
|
|
(defmethod handle :class/configure [[_ page]]
|
|
|
(shui/dialog-open!
|
|
|
#(vector :<>
|