diff options
author | Phil Hughes <me@iamphill.com> | 2017-10-26 11:14:31 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-26 11:14:31 +0100 |
commit | 05728e785ce7cd39c4c517aa0ea50b3bba44d537 (patch) | |
tree | faa93529ccd3b8a7e6ac386192d9a442ea55af25 /app/assets/javascripts/repo/stores/mutations/branch.js | |
parent | 95e56a617500d6ef94d7e857370cda5eadde614f (diff) | |
download | gitlab-ce-05728e785ce7cd39c4c517aa0ea50b3bba44d537.tar.gz |
[WIP] Move multi-file editor store to Vuex
Diffstat (limited to 'app/assets/javascripts/repo/stores/mutations/branch.js')
-rw-r--r-- | app/assets/javascripts/repo/stores/mutations/branch.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/stores/mutations/branch.js b/app/assets/javascripts/repo/stores/mutations/branch.js new file mode 100644 index 00000000000..d8229e8a620 --- /dev/null +++ b/app/assets/javascripts/repo/stores/mutations/branch.js @@ -0,0 +1,9 @@ +import * as types from '../mutation_types'; + +export default { + [types.SET_CURRENT_BRANCH](state, currentBranch) { + Object.assign(state, { + currentBranch, + }); + }, +}; |