1const BVToastMixin = {
2  methods: {
3    successToast(message) {
4      this.$root.$bvToast.toast(message, {
5        title: 'Success',
6        variant: 'success',
7        autoHideDelay: 10000, //auto hide in milliseconds
8        isStatus: true,
9        solid: true
10      });
11    },
12    errorToast(message) {
13      this.$root.$bvToast.toast(message, {
14        title: 'Error',
15        variant: 'danger',
16        noAutoHide: true,
17        isStatus: true,
18        solid: true
19      });
20    }
21  }
22};
23
24export default BVToastMixin;
25