From: Adam Dullage Date: Wed, 29 Jun 2022 19:52:58 +0000 (+0100) Subject: Added 'Note Saved' notification. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=870872a9aa028e8de98619392ad4f79c91b1bf0d;p=flatnotes.git Added 'Note Saved' notification. --- diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index 832b4f1..5397bc8 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -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() {