diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-19 14:50:52 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-19 14:50:52 +0100 |
commit | 8e0d073b369ecabe7dabc75bda76b795b2d28931 (patch) | |
tree | 691d183adfaedcd06fdfc26b1a1e9c3f0f81312a /app/assets/javascripts/ide/stores/actions.js | |
parent | 5d1d5830ac728a59b6f12cccddbe185956c68a39 (diff) | |
download | gitlab-ce-8e0d073b369ecabe7dabc75bda76b795b2d28931.tar.gz |
fixed failing commit actions spec
Diffstat (limited to 'app/assets/javascripts/ide/stores/actions.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js index 692a7c0aa6b..bfdbbd7ccb0 100644 --- a/app/assets/javascripts/ide/stores/actions.js +++ b/app/assets/javascripts/ide/stores/actions.js @@ -33,10 +33,7 @@ export const setPanelCollapsedStatus = ({ commit }, { side, collapsed }) => { } }; -export const toggleRightPanelCollapsed = ( - { dispatch, state }, - e = undefined, -) => { +export const toggleRightPanelCollapsed = ({ dispatch, state }, e = undefined) => { if (e) { $(e.currentTarget) .tooltip('hide') @@ -141,11 +138,11 @@ export const updateDelayViewerUpdated = ({ commit }, delay) => { commit(types.UPDATE_DELAY_VIEWER_CHANGE, delay); }; -export const updateTempFlagForEntry = ({ commit, dispatch, state }, { entry, tempFile }) => { - commit(types.UPDATE_TEMP_FLAG, { path: entry.path, tempFile }); +export const updateTempFlagForEntry = ({ commit, dispatch, state }, { file, tempFile }) => { + commit(types.UPDATE_TEMP_FLAG, { path: file.path, tempFile }); - if (entry.parentPath) { - dispatch('updateTempFlagForEntry', { entry: state.entries[entry.parentPath], tempFile }); + if (file.parentPath) { + dispatch('updateTempFlagForEntry', { entry: state.entries[file.parentPath], tempFile }); } }; |