Added 'Note Saved' notification.
authorAdam Dullage <redacted>
Wed, 29 Jun 2022 19:52:58 +0000 (20:52 +0100)
committerAdam Dullage <redacted>
Wed, 29 Jun 2022 19:52:58 +0000 (20:52 +0100)
flatnotes/src/components/App.js

index 832b4f1c51b6e3851d58d1fb005eced8ad5b8a41..5397bc87ec341f2a748b6d6add19dd6a2709ca03 100644 (file)
@@ -271,6 +271,7 @@ export default {
       // No Change
       else {
         this.toggleEditMode();
+        this.saveNoteToast();
       }
     },
 
@@ -284,6 +285,14 @@ export default {
       this.updateDocumentTitle();
       history.replaceState(null, "", this.currentNote.href);
       this.toggleEditMode();
+      this.saveNoteToast();
+    },
+
+    saveNoteToast: function() {
+      this.$bvToast.toast("Note Saved ✓", {
+        variant: "success",
+        noCloseButton: true,
+      });
     },
 
     cancelNote: function() {
git clone https://git.99rst.org/PROJECT