mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-07-17 11:31:53 +08:00
Add reannounce and recheck button
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user