git.99rst.org
/
flatnotes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2dc8c60
)
Added 'Note Saved' notification.
author
Adam Dullage
<redacted>
Wed, 29 Jun 2022 19:52:58 +0000
(20:52 +0100)
committer
Adam Dullage
<redacted>
Wed, 29 Jun 2022 19:52:58 +0000
(20:52 +0100)
flatnotes/src/components/App.js
patch
|
blob
|
history
diff --git
a/flatnotes/src/components/App.js
b/flatnotes/src/components/App.js
index 832b4f1c51b6e3851d58d1fb005eced8ad5b8a41..5397bc87ec341f2a748b6d6add19dd6a2709ca03 100644
(file)
--- 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() {
git clone https://git.99rst.org/PROJECT