¨4.0.1¨
This commit is contained in:
16
Modules/Admin/Resources/assets/js/Toaster.js
Normal file
16
Modules/Admin/Resources/assets/js/Toaster.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import Vue from "vue";
|
||||
import VueToast from "vue-toast-notification";
|
||||
|
||||
Vue.use(VueToast);
|
||||
|
||||
export function toaster(message, options = {}) {
|
||||
Vue.$toast.open({
|
||||
message,
|
||||
type: options.type || "default",
|
||||
duration: 5000,
|
||||
dismissible: true,
|
||||
position: "bottom-right",
|
||||
pauseOnHover: true,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user