Move toasts to bottom right
authorAdam Dullage <redacted>
Tue, 9 Aug 2022 08:13:59 +0000 (09:13 +0100)
committerAdam Dullage <redacted>
Tue, 9 Aug 2022 08:13:59 +0000 (09:13 +0100)
flatnotes/src/components/App.js
flatnotes/src/components/Login.vue
flatnotes/src/components/SearchInput.vue

index c4ce8c5de5faaadaaa1625897b7fdf835858f164..6bdb1f9b9d51879b890e33a0aa0e5147bb97b22f 100644 (file)
@@ -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",
         }
       );
     },
index b2e7e4d82e8d5914aadd50c5cfbf6692a46eee0e..fbfd170245018ab158a638b83f12910f202d7513 100644 (file)
@@ -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");
index b9694ad11aa4821985e6f126c5707ecd65149b35..b401a43174b59f94e10fdb62991b1c809508308e 100644 (file)
@@ -69,6 +69,7 @@ export default {
         this.$bvToast.toast("Please enter a search term ✘", {
           variant: "danger",
           noCloseButton: true,
+          toaster: "b-toaster-bottom-right",
         });
       }
     },
git clone https://git.99rst.org/PROJECT