diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5ece65f..b668480 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -39,7 +39,7 @@ export class AppComponent implements OnInit { }) .subscribe(res => { // ok - if (res.isNewVersionAvailable === true) { + if (res.isNewReleaseAvailable === true) { console.log("There is a new release available. Install it to keep your HoneyPi up-to-date."); console.log("isStable=",res.isStable); this.isNewReleaseAvailable = true; diff --git a/src/app/services/app.service.ts b/src/app/services/app.service.ts index 8311623..bc458a7 100644 --- a/src/app/services/app.service.ts +++ b/src/app/services/app.service.ts @@ -102,9 +102,9 @@ export class AppService { }); } - checkNewUpdate(): Observable<{chdir: string, isStable: boolean, isNewVersionAvailable: boolean}> { + checkNewUpdate(): Observable<{chdir: string, isStable: boolean, isNewReleaseAvailable: boolean}> { return this.http.get(environment.apiURL + 'update.php?mode=checkUpdate') - .map((response: {chdir: string, isStable: boolean, isNewVersionAvailable: boolean}) => { + .map((response: {chdir: string, isStable: boolean, isNewReleaseAvailable: boolean}) => { if (response) { return response; }