26 lines
No EOL
743 B
JavaScript
26 lines
No EOL
743 B
JavaScript
import { storeActions } from "@/constants/storeActions.js";
|
|
import { widgetNames } from "@/constants/widgetNames.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;
|
|
},
|
|
widgetNames(){
|
|
return widgetNames;
|
|
}
|
|
},
|
|
} |