There was an error while loading. Please reload this page.
1 parent 95dab7e commit e61ae90Copy full SHA for e61ae90
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@stfalcon/vuex-loading-plugin",
3
- "version": "1.1.2",
+ "version": "1.2.0",
4
"description": "Lightweight plugin for handle loading before and after action request",
5
"main": "src/index.js",
6
"scripts": {
src/modules/turns.js
@@ -23,5 +23,14 @@ export default {
23
(_, idx, arr) => idx !== arr.indexOf(moduleName)
24
);
25
}
26
+ },
27
+
28
+ actions: {
29
+ clearAll({ state, commit }) {
30
+ state.turns.forEach(turn => {
31
+ commit(`${turn}/SET_LOADING`, false, { root: true });
32
+ commit('REMOVE_TURN', turn);
33
+ })
34
+ }
35
36
};
0 commit comments