Ver Fonte

fix: watch dir after a new graph has been created

Tienson Qin há 3 anos atrás
pai
commit
edf02203a3
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/main/frontend/handler/events.cljs

+ 2 - 0
src/main/frontend/handler/events.cljs

@@ -108,6 +108,8 @@
     (if empty-graph?
       (route-handler/redirect! {:to :import :query-params {:from "picker"}})
       (route-handler/redirect-to-home!)))
+  (when-let [dir-name (config/get-repo-dir repo)]
+    (fs/watch-dir! dir-name))
   (repo-handler/refresh-repos!)
   (file-sync-restart!))