!wip fixed it always saying there is an update #1513

This commit is contained in:
Jamie.Rees 2017-09-26 13:32:03 +01:00
commit 5f978abf86

View file

@ -29,9 +29,11 @@ export class UpdateComponent implements OnInit {
public checkForUpdate() {
this.updateService.checkForNewUpdate().subscribe(x => {
if (x) {
if (x === true) {
this.updateAvailable = true;
this.notificationService.success("Update", "There is a new update available");
} else {
this.notificationService.success("Update", "You are on the latest version!")
}
});
}