TandoorRecipes/cookbook/static/vue/components/Toast.js
2021-01-09 23:11:37 +01:00

12 lines
325 B
JavaScript

let toast_mixin = Vue.mixin({
methods: {
makeToast: function (title, message, variant = null) {
this.$bvToast.toast(message, {
title: title,
variant: variant,
toaster: 'b-toaster-top-center',
solid: true
})
}
}
})