Skip to content

Commit 8054ace

Browse files
committed
Rename the store dashboardLoading mutation
1 parent a6d0866 commit 8054ace

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vue/src/store/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ const store = createStore({
4848
});
4949
},
5050
getDashboardData({commit}) {
51-
commit('startDashboardLoading', true)
51+
commit('dashboardLoading', true)
5252
return axiosClient.get(`/dashboard`)
5353
.then((res) => {
54-
commit('startDashboardLoading', false)
54+
commit('dashboardLoading', false)
5555
commit('setDashboardData', res.data)
5656
return res;
5757
})
5858
.catch(error => {
59-
commit('startDashboardLoading', false)
59+
commit('dashboardLoading', false)
6060
return error;
6161
})
6262

@@ -140,7 +140,7 @@ const store = createStore({
140140
state.user.data = userData.user;
141141
sessionStorage.setItem("TOKEN", userData.token);
142142
},
143-
startDashboardLoading: (state, loading) => {
143+
dashboardLoading: (state, loading) => {
144144
state.dashboard.loading = loading;
145145
},
146146
setDashboardData: (state, data) => {

0 commit comments

Comments
 (0)