Added progress bar to file downloads

Added two new API calls, to update the server to a particular version and to get the updater status

You can now update through the UI, and a status dialog displays after
This commit is contained in:
Isaac Grynsztein
2020-04-02 21:53:08 -04:00
parent 458e4b45f8
commit c36867d368
17 changed files with 345 additions and 40 deletions

View File

@@ -185,14 +185,23 @@ export class PostsService {
}
// updates the server to the latest version
updateServer() {
return this.http.post(this.path + 'updateServer', {});
updateServer(tag) {
return this.http.post(this.path + 'updateServer', {tag: tag});
}
getUpdaterStatus() {
return this.http.get(this.path + 'updaterStatus');
}
// gets tag of the latest version of youtubedl-material
getLatestGithubRelease() {
return this.http.get('https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest');
}
getAvailableRelease() {
return this.http.get('https://api.github.com/repos/tzahi12345/youtubedl-material/releases');
}
}