From 875cba9d99b49ace61a5dfc52b4fe365893f4b37 Mon Sep 17 00:00:00 2001 From: Denys Mishunov Date: Wed, 5 Jun 2019 12:28:26 +0200 Subject: 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 --- app/assets/javascripts/ide/stores/actions.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/assets/javascripts/ide/stores') 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'); }; -- cgit v1.2.3