Add reannounce and recheck button

This commit is contained in:
CzBiX
2019-05-10 22:16:25 +08:00
parent 0c9c6c98c2
commit 7989c2cab8
2 changed files with 21 additions and 0 deletions

View File

@@ -69,6 +69,13 @@
</v-list-tile>
</v-list>
</v-menu>
<v-divider vertical inset />
<v-btn icon @click="reannounceTorrents" title="Reannounce">
<v-icon>mdi-bullhorn</v-icon>
</v-btn>
<v-btn icon @click="recheckTorrents" title="Recheck">
<v-icon>mdi-backup-restore</v-icon>
</v-btn>
</v-toolbar>
<v-divider />
</v-layout>
@@ -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);
},