summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-04-17 03:27:02 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-04-17 03:27:02 +0000
commita56611e3892b9039f6a8196c37d8b70a3c86c68b (patch)
treef4f9f6e9cd5d7d5b33c9d20c26e13d2dc8837c59
parentc39ad568e469b288a510c03b1aebefd78d8a9ee5 (diff)
parent05375ee6890fb5f4d0eedd6851260198920432b0 (diff)
downloadgitlab-ce-a56611e3892b9039f6a8196c37d8b70a3c86c68b.tar.gz
Merge branch 'docs-fe-vuex-header-hierarchy' into 'master'
FE Docs: Fix header hierarchy in Vuex section of Vue.md See merge request gitlab-org/gitlab-ce!18413
-rw-r--r--doc/development/fe_guide/vue.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/development/fe_guide/vue.md b/doc/development/fe_guide/vue.md
index c1170fa3b13..944b56a65f1 100644
--- a/doc/development/fe_guide/vue.md
+++ b/doc/development/fe_guide/vue.md
@@ -523,7 +523,7 @@ export default new Vuex.Store({
```
_Note:_ If the state of the application is too complex, an individual file for the state may be better.
-#### `actions.js`
+##### `actions.js`
An action commits a mutatation. In this file, we will write the actions that will call the respective mutation:
```javascript
@@ -550,7 +550,7 @@ import { mapActions } from 'vuex';
};
```
-#### `getters.js`
+##### `getters.js`
Sometimes we may need to get derived state based on store state, like filtering for a specific prop. This can be done through the `getters`:
```javascript
@@ -573,7 +573,7 @@ import { mapGetters } from 'vuex';
};
```
-#### `mutations.js`
+##### `mutations.js`
The only way to actually change state in a Vuex store is by committing a mutation.
```javascript
@@ -586,7 +586,7 @@ The only way to actually change state in a Vuex store is by committing a mutatio
};
```
-#### `mutations_types.js`
+##### `mutations_types.js`
From [vuex mutations docs][vuex-mutations]:
> It is a commonly seen pattern to use constants for mutation types in various Flux implementations. This allows the code to take advantage of tooling like linters, and putting all constants in a single file allows your collaborators to get an at-a-glance view of what mutations are possible in the entire application.