From ab8f6bcbc20f6fd68d3f9fc831d2dc2b0c613d6e Mon Sep 17 00:00:00 2001 From: R-L-T-Y Date: Wed, 8 Jul 2020 16:05:41 +0800 Subject: [PATCH] allow torrents to force start (button, api, locale) --- src/Api.ts | 4 ++++ src/components/Torrents.vue | 14 ++++++++++++++ src/locale/en.ts | 3 ++- src/locale/zh-CN.ts | 3 ++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/Api.ts b/src/Api.ts index a7dba49..b0ddbe8 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -121,6 +121,10 @@ class Api { return this.actionTorrents('resume', hashes); } + public setForceStartTorrents(hashes: string[]) { + return this.actionTorrents('setForceStart', hashes, {value:'true'}); + } + public reannounceTorrents(hashes: string[]) { return this.actionTorrents('reannounce', hashes); } diff --git a/src/components/Torrents.vue b/src/components/Torrents.vue index 9cfc6f7..1b10c3d 100644 --- a/src/components/Torrents.vue +++ b/src/components/Torrents.vue @@ -33,6 +33,16 @@ > mdi-pause + + + mdi-play-speed + +