Skip to content

Commit

Permalink
fix: selection list not cleared when closing deletemodal without butt…
Browse files Browse the repository at this point in the history
…on press

bug fix: not release selected list when close dialog without close button
  • Loading branch information
m4ximuel committed Apr 8, 2021
1 parent a4f412f commit 80573f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Modals/ConfirmDeleteModal.vue
Expand Up @@ -62,9 +62,11 @@ export default {
return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash))
}
},
beforeDestroy() {
this.$store.state.selected_torrents = []
},
methods: {
close() {
this.$store.state.selected_torrents = []
this.$store.commit('DELETE_MODAL', this.guid)
},
deleteWithoutFiles() {
Expand Down

0 comments on commit 80573f4

Please sign in to comment.