diff options
author | Phil Hughes <me@iamphill.com> | 2018-09-04 11:08:20 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-07 11:28:03 +0100 |
commit | feae8975527fa3742b6cf279d19c27f724bf0a8e (patch) | |
tree | d11a2597a6a6e69bcde17bc4b6b4fc508cc5326d /app/assets/javascripts/ide/stores/actions.js | |
parent | 9badf9e7238f93265164bb49ac52de986f86aa26 (diff) | |
download | gitlab-ce-feae8975527fa3742b6cf279d19c27f724bf0a8e.tar.gz |
karma fixes
Diffstat (limited to 'app/assets/javascripts/ide/stores/actions.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js index 734ee1995ee..b8b64aead30 100644 --- a/app/assets/javascripts/ide/stores/actions.js +++ b/app/assets/javascripts/ide/stores/actions.js @@ -124,25 +124,25 @@ export const scrollToTab = () => { }; export const stageAllChanges = ({ state, commit, dispatch }) => { - const activeFile = state.openFiles[0]; + const openFile = state.openFiles[0]; commit(types.SET_LAST_COMMIT_MSG, ''); state.changedFiles.forEach(file => commit(types.STAGE_CHANGE, file.path)); dispatch('openPendingTab', { - file: state.stagedFiles.find(f => f.path === activeFile.path), + file: state.stagedFiles.find(f => f.path === openFile.path), keyPrefix: stageKeys.staged, }); }; export const unstageAllChanges = ({ state, commit, dispatch }) => { - const activeFile = state.openFiles[0]; + const openFile = state.openFiles[0]; state.stagedFiles.forEach(file => commit(types.UNSTAGE_CHANGE, file.path)); dispatch('openPendingTab', { - file: state.changedFiles.find(f => f.path === activeFile.path), + file: state.changedFiles.find(f => f.path === openFile.path), keyPrefix: stageKeys.unstaged, }); }; |