Commit 5e53f255 authored by Clement Ho's avatar Clement Ho

Merge branch 'patch-55' into 'master'

Docs: couple of improvements to the Vuex frontend guide

See merge request gitlab-org/gitlab-ce!28257
parents 4a7db7fb 1dcc79cb
......@@ -186,7 +186,7 @@ Remember that actions only describe that something happened, they don't describe
state.users.push(user);
},
[types.REQUEST_ADD_USER_ERROR](state, error) {
state.isAddingUser = true;
state.isAddingUser = false;
state.errorAddingUser = error;
},
};
......@@ -231,7 +231,7 @@ The store should be included in the main component of your application:
```javascript
// app.vue
import store from 'store'; // it will include the index.js file
import store from './store'; // it will include the index.js file
export default {
name: 'application',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment