22 lines
No EOL
620 B
JavaScript
22 lines
No EOL
620 B
JavaScript
import { storeActions } from "@/constants/storeActions.js";
|
|
|
|
export default {
|
|
methods: {
|
|
dispatchBlockingStoreAction(type, payload) {
|
|
// globalMethods.showWaitingModal(true);
|
|
|
|
return this.dispatchNonBlockingStoreAction(type, payload)
|
|
.finally(() => {
|
|
// globalMethods.showWaitingModal(false);
|
|
});;
|
|
},
|
|
dispatchNonBlockingStoreAction(type, payload) {
|
|
return this.$store.dispatch(type, payload);
|
|
},
|
|
},
|
|
computed: {
|
|
storeActions() {
|
|
return storeActions;
|
|
},
|
|
},
|
|
} |