fix: selection list not cleared when closing deletemodal without button press

bug fix: not release selected list when close dialog without close button
This commit is contained in:
m4ximuel 2021-04-08 15:22:53 +09:00 committed by GitHub
parent a4f412f8c5
commit 80573f4364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {