diff --git a/src/components/Breadcrumbs.vue b/src/components/Breadcrumbs.vue index f18a08bc..f9c55b9a 100644 --- a/src/components/Breadcrumbs.vue +++ b/src/components/Breadcrumbs.vue @@ -150,7 +150,7 @@ export default { }, async onBulkDelete() { - await this.$store.dispatch(actions.DELETE_SELECTION) + await this.$store.dispatch(actions.DELETE_SELECTION, { folder: this.$route.params.folder }) this.$store.commit(mutations.RESET_SELECTION) }, onBulkMove() { diff --git a/src/store/actions.js b/src/store/actions.js index 32658e22..ee4272fb 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -487,7 +487,7 @@ export default { throw err } }, - async [actions.DELETE_SELECTION]({ commit, dispatch, state }) { + async [actions.DELETE_SELECTION]({ commit, dispatch, state }, { folder }) { commit(mutations.FETCH_START, { type: 'deleteSelection' }) try { for (const folder of state.selection.folders) { @@ -495,7 +495,7 @@ export default { } for (const bookmark of state.selection.bookmarks) { - await dispatch(actions.DELETE_BOOKMARK, { id: bookmark.id }) + await dispatch(actions.DELETE_BOOKMARK, { id: bookmark.id, folder }) } commit(mutations.FETCH_END, 'deleteSelection') } catch (err) {