diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-04-09 13:33:53 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-04-09 13:33:53 +0300 |
commit | 7ec8871b57bb6de91bcbfa5882a344cf2d85da62 (patch) | |
tree | 5ff75861e53d7dcb861fe1b73e8f894255360e79 /doc/development/fe_guide | |
parent | e0abe44f5183e82ad5328d5a1073759a9f510bf0 (diff) | |
parent | 0efff5d18d72b221c6cb7c8b3d546a7d91bf73d3 (diff) |
Merge branch 'more-consistent-namespacing-vuex-example-code' into 'master'
Use RECEIVE namespace rather than REQUEST
See merge request gitlab-org/gitlab-ce!27130
Diffstat (limited to 'doc/development/fe_guide')
-rw-r--r-- | doc/development/fe_guide/vuex.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/fe_guide/vuex.md b/doc/development/fe_guide/vuex.md index 7b54fa6289c..7d52cac5f7e 100644 --- a/doc/development/fe_guide/vuex.md +++ b/doc/development/fe_guide/vuex.md @@ -83,7 +83,7 @@ In this file, we will write the actions that will call the respective mutations: export const requestUsers = ({ commit }) => commit(types.REQUEST_USERS); export const receiveUsersSuccess = ({ commit }, data) => commit(types.RECEIVE_USERS_SUCCESS, data); - export const receiveUsersError = ({ commit }, error) => commit(types.REQUEST_USERS_ERROR, error); + export const receiveUsersError = ({ commit }, error) => commit(types.RECEIVE_USERS_ERROR, error); export const fetchUsers = ({ state, dispatch }) => { dispatch('requestUsers'); @@ -175,7 +175,7 @@ Remember that actions only describe that something happened, they don't describe state.users = data; state.isLoading = false; }, - [types.REQUEST_USERS_ERROR](state, error) { + [types.RECEIVE_USERS_ERROR](state, error) { state.isLoading = false; }, [types.REQUEST_ADD_USER](state, user) { |