diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-25 19:37:07 +0200 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-28 12:17:02 +0200 |
commit | fa3b02413b356d47fa75bab193e4d323e6db416a (patch) | |
tree | 8798a211526bffc983d40c6cc4a345189161b74a /app/assets/javascripts/ide/ide_router.js | |
parent | b452bdead4f217b7488f13db9b608a9ddce1830e (diff) | |
download | gitlab-ce-fa3b02413b356d47fa75bab193e4d323e6db416a.tar.gz |
Fixed new Additions
Automatic Diff Navigation
Diffstat (limited to 'app/assets/javascripts/ide/ide_router.js')
-rw-r--r-- | app/assets/javascripts/ide/ide_router.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/ide_router.js b/app/assets/javascripts/ide/ide_router.js index d828b4e6778..4f1c5988fc5 100644 --- a/app/assets/javascripts/ide/ide_router.js +++ b/app/assets/javascripts/ide/ide_router.js @@ -134,12 +134,12 @@ router.beforeEach((to, from, next) => { store.state.entries[change.new_path]; if (changeTreeEntry) { - store.dispatch('setFileMrDiff', { + store.dispatch('setFileMrChange', { file: changeTreeEntry, - mrDiff: change.diff, + mrChange: change, }); - if (ind < 5) { + if (ind < 10) { store.dispatch('getFileData', { path: change.new_path, makeFileActive: ind === 0, |