From 2cdbc5b2a4d843fd4c8fa3a5e7b3f636dd696d4e Mon Sep 17 00:00:00 2001 From: Daan Date: Sat, 3 Oct 2020 08:42:07 +0200 Subject: [PATCH] Tabs Trackers, Peers & Content are empty #43 && Fix global pause/resume --- package-lock.json | 6 +- package.json | 4 +- .../TorrentDetailModal/Tabs/Content.vue | 3 + .../Modals/TorrentDetailModal/Tabs/Info.vue | 197 +++++++++--------- .../Modals/TorrentDetailModal/Tabs/Peers.vue | 19 +- .../TorrentDetailModal/Tabs/Trackers.vue | 3 + src/services/qbit.js | 2 +- 7 files changed, 119 insertions(+), 115 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f4b8cc7..77c19679 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12104,9 +12104,9 @@ } }, "vuetify": { - "version": "2.3.10", - "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.3.10.tgz", - "integrity": "sha512-KzL/MhZ7ajubm9kwbdCoA/cRV50RX+a5Hcqiwt7Am1Fni2crDtl2no05UNwKroTfscrYYf07gq3WIFSurPsnCA==" + "version": "2.3.12", + "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.3.12.tgz", + "integrity": "sha512-FSt1pzpf0/Lh0xuctAPB7RiLbUl7bzVc7ejbXLLhfmgm7zD7yabuhVYuyVda/SzokjZMGS3j1lNu2lLfdrz0oQ==" }, "vuex": { "version": "3.5.1", diff --git a/package.json b/package.json index 6360a463..97c9fb21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuetorrent", - "version": "0.3.5", + "version": "0.3.6", "private": true, "scripts": { "serve": "vue-cli-service serve", @@ -25,7 +25,7 @@ "vue-router": "^3.4.5", "vue-toastification": "^1.7.8", "vue2-perfect-scrollbar": "^1.5.0", - "vuetify": "^2.3.4", + "vuetify": "^2.3.12", "vuex": "^3.5.1", "vuex-persist": "^3.1.3" }, diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Content.vue b/src/components/Modals/TorrentDetailModal/Tabs/Content.vue index 9dba4145..f6904506 100644 --- a/src/components/Modals/TorrentDetailModal/Tabs/Content.vue +++ b/src/components/Modals/TorrentDetailModal/Tabs/Content.vue @@ -65,6 +65,9 @@ export default { this.getTorrentFiles() } } + }, + created() { + this.getTorrentFiles() } } diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Info.vue b/src/components/Modals/TorrentDetailModal/Tabs/Info.vue index a5e082e7..24961e86 100644 --- a/src/components/Modals/TorrentDetailModal/Tabs/Info.vue +++ b/src/components/Modals/TorrentDetailModal/Tabs/Info.vue @@ -1,103 +1,108 @@ diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue b/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue index bd0b18a4..2b4bddbc 100644 --- a/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue +++ b/src/components/Modals/TorrentDetailModal/Tabs/Peers.vue @@ -43,7 +43,7 @@ diff --git a/src/components/Modals/TorrentDetailModal/Tabs/Trackers.vue b/src/components/Modals/TorrentDetailModal/Tabs/Trackers.vue index e730d410..a34d4ee0 100644 --- a/src/components/Modals/TorrentDetailModal/Tabs/Trackers.vue +++ b/src/components/Modals/TorrentDetailModal/Tabs/Trackers.vue @@ -78,6 +78,9 @@ export default { trackers() { return this.tempTrackers } + }, + created() { + this.getTorrentTrackers() } } diff --git a/src/services/qbit.js b/src/services/qbit.js index 8ff4f316..0b505170 100644 --- a/src/services/qbit.js +++ b/src/services/qbit.js @@ -300,7 +300,7 @@ class Qbit { actionTorrents(action, hashes, extra) { const params = { - hashes: hashes.join('|'), + hashes: hashes.length ? hashes.join('|') : 'all', ...extra } const data = new URLSearchParams(params)