Skip to content

Commit

Permalink
Remove the 'close sidebar'-calls on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Oct 4, 2022
1 parent c0506e8 commit 831ce7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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
7 changes: 2 additions & 5 deletions packages/web-app-files/src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 831ce7e

Please sign in to comment.