Skip to content

Commit

Permalink
Merge pull request #7733 from owncloud/remove-close-sidebar-calls-on-…
Browse files Browse the repository at this point in the history
…delete

Remove the 'close sidebar'-calls on delete
  • Loading branch information
kulmann authored Oct 4, 2022
2 parents 4ec47de + 831ce7e commit f8ae1b4
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 f8ae1b4

Please sign in to comment.