summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorDenys Mishunov <dmishunov@gitlab.com>2019-06-05 12:28:26 +0200
committerDenys Mishunov <dmishunov@gitlab.com>2019-06-25 12:32:35 +0200
commit875cba9d99b49ace61a5dfc52b4fe365893f4b37 (patch)
tree9ea154d55131d2bffd44d6490576aa819f8f5c7e /app/assets/javascripts
parentb1038a3a8db9960f39812d7c6e3c888e35c4d679 (diff)
downloadgitlab-ce-875cba9d99b49ace61a5dfc52b4fe365893f4b37.tar.gz
Keep empty folders in the tree list
When removing the last file from a folder in WebIDE, do not remove the folder from the view. We keep those to give users possibility to re-upload files to the same folders. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60860
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/ide/stores/actions.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js
index 5429b834708..48aabaf9dcf 100644
--- a/app/assets/javascripts/ide/stores/actions.js
+++ b/app/assets/javascripts/ide/stores/actions.js
@@ -208,10 +208,6 @@ export const deleteEntry = ({ commit, dispatch, state }, path) => {
commit(types.DELETE_ENTRY, path);
- if (entry.parentPath && state.entries[entry.parentPath].tree.length === 0) {
- dispatch('deleteEntry', entry.parentPath);
- }
-
dispatch('triggerFilesChange');
};