mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-05-09 00:32:21 +03:00
0.4.8 (#92)
* version + dep bump * fix delete multiple * fix delete multiple torrents [#91]
This commit is contained in:
parent
f23e4a2f37
commit
3ff434ffa8
3 changed files with 46 additions and 34 deletions
src/components/Modals
|
@ -52,17 +52,17 @@ import qbit from '@/services/qbit'
|
|||
export default {
|
||||
name: 'ConfirmDeleteModal',
|
||||
mixins: [Modal],
|
||||
computed: {
|
||||
...mapState(['selected_torrents']),
|
||||
...mapGetters(['getTorrents']),
|
||||
torrents() {
|
||||
return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash))
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
this.$store.commit('DELETE_MODAL', this.guid)
|
||||
},
|
||||
computed: {
|
||||
...mapState(['selected_torrents']),
|
||||
...mapGetters(['getTorrents']),
|
||||
torrents() {
|
||||
return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash))
|
||||
}
|
||||
},
|
||||
deleteWithoutFiles() {
|
||||
qbit.deleteTorrents(this.selected_torrents, false)
|
||||
this.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue