Added ability to pause and resume all downloads

Removed backend dependency on queue library
This commit is contained in:
Isaac Abadi
2021-08-25 23:45:56 -06:00
parent a36794fd4f
commit 865185d277
7 changed files with 64 additions and 16 deletions

View File

@@ -425,10 +425,18 @@ export class PostsService implements CanActivate {
return this.http.post(this.path + 'pauseDownload', {download_uid: download_uid}, this.httpOptions);
}
pauseAllDownloads() {
return this.http.post(this.path + 'pauseAllDownloads', {}, this.httpOptions);
}
resumeDownload(download_uid) {
return this.http.post(this.path + 'resumeDownload', {download_uid: download_uid}, this.httpOptions);
}
resumeAllDownloads() {
return this.http.post(this.path + 'resumeAllDownloads', {}, this.httpOptions);
}
restartDownload(download_uid) {
return this.http.post(this.path + 'restartDownload', {download_uid: download_uid}, this.httpOptions);
}