diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-19 00:08:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-19 00:08:01 +0000 |
commit | 1caa60060b2f9e3417ab335e2f1dea1064163434 (patch) | |
tree | 01c0d5825bd345ee625bb70b7433c6e10307fcce /app/assets/javascripts/ide | |
parent | 7f8330873c1a5860b8a9a52d111083a65d210249 (diff) | |
download | gitlab-ce-1caa60060b2f9e3417ab335e2f1dea1064163434.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js index dd69e2d6f1f..7a386299eed 100644 --- a/app/assets/javascripts/ide/stores/actions.js +++ b/app/assets/javascripts/ide/stores/actions.js @@ -110,6 +110,7 @@ export const createTempEntry = ( commit(types.ADD_FILE_TO_CHANGED, file.path); dispatch('setFileActive', file.path); dispatch('triggerFilesChange'); + dispatch('burstUnusedSeal'); } if (parentPath && !state.entries[parentPath].opened) { @@ -222,7 +223,9 @@ export const deleteEntry = ({ commit, dispatch, state }, path) => { dispatch('deleteEntry', prevPath); return; } - if (state.unusedSeal) dispatch('burstUnusedSeal'); + + dispatch('burstUnusedSeal'); + if (entry.opened) dispatch('closeFile', entry); if (isTree) { @@ -267,6 +270,7 @@ export const renameEntry = ({ dispatch, commit, state }, { path, name, parentPat commit(types.REMOVE_FILE_FROM_STAGED_AND_CHANGED, newEntry); } else if (!isInChanges) { commit(types.ADD_FILE_TO_CHANGED, newPath); + dispatch('burstUnusedSeal'); } if (!newEntry.tempFile) { |