add close button to toasts

This commit is contained in:
Moriz Wahl 2021-07-08 12:05:18 +02:00
parent 2de30f10de
commit f4076e6813

View File

@ -40,8 +40,14 @@ export default {
Vue.use(Loading)
Vue.use(Toasted, {
position: 'top-center',
duration: 2500,
duration: 5000,
fullWidth: true,
action: {
text: 'x',
onClick: (e, toastObject) => {
toastObject.goAway(0)
},
},
})
},
}