1export const loading = true;
2
3const LoadingBarMixin = {
4  methods: {
5    startLoader() {
6      this.$root.$emit('loader-start');
7      this.loading = true;
8    },
9    endLoader() {
10      this.$root.$emit('loader-end');
11      this.loading = false;
12    },
13    hideLoader() {
14      this.$root.$emit('loader-hide');
15    },
16  },
17};
18
19export default LoadingBarMixin;
20