Browse Source

fix: tweak message and update docs for updated replace cmd flow

Gabriel Horner 1 năm trước cách đây
mục cha
commit
56063ed2bf

+ 2 - 2
docs/dev-practices.md

@@ -398,8 +398,8 @@ These tasks are specific to database graphs. For these tasks there is a one time
   Created graph inferred!
   Created graph inferred!
   ```
   ```
 
 
-  Finally, upload this created graph with the dev command: `Replace graph with`
-  ... Switch to the graph and you can use the created graph!
+  Finally, upload this created graph with the dev command: `Replace graph with
+  its db.sqlite file`. You'll be switched to the graph and you can use it!
 
 
 * `dev:db-datoms` and `dev:diff-datoms` - Save a db's datoms to file and diff two datom files
 * `dev:db-datoms` and `dev:diff-datoms` - Save a db's datoms to file and diff two datom files
 
 

+ 1 - 1
src/main/frontend/handler/common/developer.cljs

@@ -91,7 +91,7 @@
 (defn import-chosen-graph
 (defn import-chosen-graph
   [repo]
   [repo]
   (p/let [_ (persist-db/<unsafe-delete repo)]
   (p/let [_ (persist-db/<unsafe-delete repo)]
-    (notification/show! "Graph updated!" :success)
+    (notification/show! (str "Graph updated! Switching to graph ...") :success)
     (state/pub-event! [:graph/switch repo])))
     (state/pub-event! [:graph/switch repo])))
 
 
 (defn ^:export replace-graph-with-db-file []
 (defn ^:export replace-graph-with-db-file []