diff --git a/src/components/Modals/ConfirmDeleteModal.vue b/src/components/Modals/ConfirmDeleteModal.vue
index 44a230ca8d..25d3500e2f 100644
--- a/src/components/Modals/ConfirmDeleteModal.vue
+++ b/src/components/Modals/ConfirmDeleteModal.vue
@@ -64,6 +64,7 @@ export default {
},
methods: {
close() {
+ this.$store.state.selected_torrents = []
this.$store.commit('DELETE_MODAL', this.guid)
},
deleteWithoutFiles() {
diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue b/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue
index 60d3b19930..f188041aa8 100644
--- a/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue
+++ b/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue
@@ -95,10 +95,13 @@ export default {
},
created() {
this.getTorrentPeers()
- this.refreshTimer = setInterval(function(){
+ this.refreshTimer = setInterval(function () {
this.getTorrentPeers()
}.bind(this), 2000)
},
+ beforeDestroy() {
+ clearTimeout(this.refreshTimer)
+ },
methods: {
codeToFlag(val) {
return codeToFlag(val)
@@ -116,9 +119,6 @@ export default {
this.peersObj = data.peers
}
- },
- beforeDestroy() {
- clearTimeout(this.refreshTimer)
}
}
diff --git a/src/components/Torrent/TorrentRightClickMenu.vue b/src/components/Torrent/TorrentRightClickMenu.vue
index 93b2f45307..fb8f311b3a 100644
--- a/src/components/Torrent/TorrentRightClickMenu.vue
+++ b/src/components/Torrent/TorrentRightClickMenu.vue
@@ -29,7 +29,7 @@
-
+
{{ mdiDelete }}
@@ -40,17 +40,6 @@
Delete
-
-
- {{ mdiDeleteForever }}
-
-
- Delete with files
-
-
1
}
},
methods: {
@@ -303,11 +292,10 @@ export default {
reannounce() {
qbit.reannounceTorrents(this.hashes)
},
- deleteWithoutFiles() {
- qbit.deleteTorrents(this.hashes, false)
- },
- deleteWithFiles() {
- qbit.deleteTorrents(this.hashes, true)
+ removeTorrent() {
+ this.$store.state.selected_torrents = this.hashes
+
+ return this.createModal('ConfirmDeleteModal')
},
recheck() {
qbit.recheckTorrents(this.hashes)