1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-05-09 00:32:21 +03:00
* version + dep bump

* fix delete multiple

* fix delete multiple torrents []
This commit is contained in:
Daan Wijns 2021-01-04 10:45:35 +01:00 committed by GitHub
parent f23e4a2f37
commit 3ff434ffa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 34 deletions
src/components/Modals

View file

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