diff --git a/changelog/unreleased/bugfix-remove-close-sidebar-calls-on-delete b/changelog/unreleased/bugfix-remove-close-sidebar-calls-on-delete new file mode 100644 index 00000000000..caf41c2d1df --- /dev/null +++ b/changelog/unreleased/bugfix-remove-close-sidebar-calls-on-delete @@ -0,0 +1,6 @@ +Bugfix: Remove the "close sidebar"-calls on delete + +We've removed the "close sidebar"-calls when deleting a resource as the mutations are not available as well as not needed anymore. + +https://github.com/owncloud/web/issues/7699 +https://github.com/owncloud/web/pull/7733 diff --git a/packages/web-app-files/src/store/actions.ts b/packages/web-app-files/src/store/actions.ts index c869e0d5555..287759f21d6 100644 --- a/packages/web-app-files/src/store/actions.ts +++ b/packages/web-app-files/src/store/actions.ts @@ -176,20 +176,17 @@ export default { promises.push(promise) } return Promise.all(promises).then(() => { - context.dispatch('sidebar/close') context.commit('REMOVE_FILES', removedFiles) context.commit('REMOVE_FILES_FROM_SEARCHED', removedFiles) context.commit('RESET_SELECTION') }) }, - async clearTrashBin(context) { - await context.dispatch('sidebar/close') + clearTrashBin(context) { context.commit('CLEAR_FILES') context.commit('RESET_SELECTION') context.commit('CLEAR_FILES_SEARCHED') }, - async removeFilesFromTrashbin(context, files) { - await context.dispatch('sidebar/close') + removeFilesFromTrashbin(context, files) { context.commit('REMOVE_FILES', files) context.commit('REMOVE_FILES_FROM_SEARCHED', files) context.commit('RESET_SELECTION')