adrema/resources/js/mixins/hasFlash.js

19 lines
454 B
JavaScript
Raw Normal View History

2023-03-04 12:02:17 +01:00
export default {
methods: {
['$success'](message) {
this.$toasted.show(message, {
position: 'bottom-right',
duration: 2000,
type: 'success',
});
},
['$error'](message) {
this.$toasted.show(message, {
position: 'bottom-right',
duration: 2000,
type: 'error',
});
},
},
};