diff --git a/src/Api.ts b/src/Api.ts index 63c96e5..4cbaeeb 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -103,6 +103,14 @@ class Api { return this.actionTorrents('resume', hashes); } + public reannounceTorrents(hashes: string[]) { + return this.actionTorrents('reannounce', hashes); + } + + public recheckTorrents(hashes: string[]) { + return this.actionTorrents('recheck', hashes); + } + public setTorrentsCategory(hashes: string[], category: string) { return this.actionTorrents('setCategory', hashes, {category}); } diff --git a/src/components/Torrents.vue b/src/components/Torrents.vue index 79e5f07..6ad73cd 100644 --- a/src/components/Torrents.vue +++ b/src/components/Torrents.vue @@ -69,6 +69,13 @@ + + + mdi-bullhorn + + + mdi-backup-restore + @@ -343,6 +350,12 @@ export default Vue.extend({ async pauseTorrents() { await api.pauseTorrents(this.selectedHashes); }, + async reannounceTorrents() { + await api.reannounceTorrents(this.selectedHashes); + }, + async recheckTorrents() { + await api.recheckTorrents(this.selectedHashes); + }, async setTorrentsCategory(category: string) { await api.setTorrentsCategory(this.selectedHashes, category); },