Skip to content

Commit

Permalink
fix: Fix hard deletion of folders
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jun 7, 2024
1 parent 713c32c commit c5981fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Folder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export default {
if (hard && !confirm(t('bookmarks', 'Do you really want to permanently delete this folder?'))) {
return
}
this.$store.dispatch(actions.DELETE_FOLDER, { id: this.folder.id })
this.$store.dispatch(actions.DELETE_FOLDER, { id: this.folder.id, hard })
},
onUndelete() {
this.$store.dispatch(actions.UNDELETE_FOLDER, { id: this.folder.id })
Expand Down
1 change: 1 addition & 0 deletions src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ export default {
parentFolder
)
await dispatch(actions.LOAD_FOLDERS)
await dispatch(actions.LOAD_DELETED_FOLDERS)
}
} catch (err) {
console.error(err)
Expand Down

0 comments on commit c5981fb

Please sign in to comment.