Version and commit info is now generated during autobuilds and can be viewed in the about dialog

Prepared removal of JSON translations from repo to move towards XLIFF-only
This commit is contained in:
Isaac Abadi
2021-09-20 22:04:46 -06:00
parent 0e37d83740
commit 58a0dc4afe
8 changed files with 84 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ export class PostsService implements CanActivate {
categories = null;
sidenav = null;
locale = isoLangs['en'];
version_info = null;
constructor(private http: HttpClient, private router: Router, @Inject(DOCUMENT) private document: Document,
public snackBar: MatSnackBar, private titleService: Title) {
@@ -453,6 +454,10 @@ export class PostsService implements CanActivate {
return this.http.post(this.path + 'clearFinishedDownloads', {}, this.httpOptions);
}
getVersionInfo() {
return this.http.get(this.path + 'versionInfo', this.httpOptions);
}
updateServer(tag) {
return this.http.post(this.path + 'updateServer', {tag: tag}, this.httpOptions);
}