From: Adam Dullage Date: Tue, 9 Aug 2022 08:13:59 +0000 (+0100) Subject: Move toasts to bottom right X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9b00c962312c2d2ea282c343d4105fac7868bbdc;p=flatnotes.git Move toasts to bottom right --- diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index c4ce8c5..6bdb1f9 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -246,6 +246,7 @@ export default { title: "Duplicate ✘", variant: "danger", noCloseButton: true, + toaster: "b-toaster-bottom-right", } ); }, @@ -262,6 +263,7 @@ export default { this.$bvToast.toast("Cannot save note without a title ✘", { variant: "danger", noCloseButton: true, + toaster: "b-toaster-bottom-right", }); return; } @@ -337,6 +339,7 @@ export default { this.$bvToast.toast("Note saved ✓", { variant: "success", noCloseButton: true, + toaster: "b-toaster-bottom-right", }); }, @@ -371,6 +374,7 @@ export default { parent.$bvToast.toast("Note deleted ✓", { variant: "success", noCloseButton: true, + toaster: "b-toaster-bottom-right", }); }) .catch(function(error) { @@ -440,6 +444,7 @@ export default { title: "Unknown Error", variant: "danger", noCloseButton: true, + toaster: "b-toaster-bottom-right", } ); }, diff --git a/flatnotes/src/components/Login.vue b/flatnotes/src/components/Login.vue index b2e7e4d..fbfd170 100644 --- a/flatnotes/src/components/Login.vue +++ b/flatnotes/src/components/Login.vue @@ -107,6 +107,7 @@ export default { parent.$bvToast.toast("Incorrect Username or Password ✘", { variant: "danger", noCloseButton: true, + toaster: "b-toaster-bottom-right", }); } else { EventBus.$emit("unhandledServerError"); diff --git a/flatnotes/src/components/SearchInput.vue b/flatnotes/src/components/SearchInput.vue index b9694ad..b401a43 100644 --- a/flatnotes/src/components/SearchInput.vue +++ b/flatnotes/src/components/SearchInput.vue @@ -69,6 +69,7 @@ export default { this.$bvToast.toast("Please enter a search term ✘", { variant: "danger", noCloseButton: true, + toaster: "b-toaster-bottom-right", }); } },