Skip to content

Commit

Permalink
Fixed isNewReleaseAvailable notification
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed Jan 5, 2024
1 parent 4f4d538 commit 17dd9ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 17dd9ca

Please sign in to comment.