mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-27 04:40:40 +03:00
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:
parent
a4f412f8c5
commit
80573f4364
1 changed files with 3 additions and 1 deletions
|
@ -62,9 +62,11 @@ export default {
|
||||||
return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash))
|
return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
this.$store.state.selected_torrents = []
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
this.$store.state.selected_torrents = []
|
|
||||||
this.$store.commit('DELETE_MODAL', this.guid)
|
this.$store.commit('DELETE_MODAL', this.guid)
|
||||||
},
|
},
|
||||||
deleteWithoutFiles() {
|
deleteWithoutFiles() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue