Browse Source

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

Gabriel Horner 1 year ago
parent
commit
56063ed2bf
2 changed files with 3 additions and 3 deletions
  1. 2 2
      docs/dev-practices.md
  2. 1 1
      src/main/frontend/handler/common/developer.cljs

+ 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!
   ```
 
-  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
 

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

@@ -91,7 +91,7 @@
 (defn import-chosen-graph
   [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])))
 
 (defn ^:export replace-graph-with-db-file []