Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(settings): actually reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Sep 9, 2020
1 parent 452881c commit 89d59ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/settings/settings.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3>Automatic Updates</h3>
</ion-list-header>
<ion-item *ngIf="updateService.updateAvailable" color="danger">
<ion-label>You have an update available.</ion-label>
<ion-button slot="end" color="light">Reload</ion-button>
<ion-button slot="end" color="light" (click)="updateService.reload()">Reload</ion-button>
</ion-item>
<ion-item>
<ion-label>Receive beta updates?</ion-label>
Expand Down
5 changes: 5 additions & 0 deletions src/lib/update.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export class UpdateService {
) {
}

async reload() {
console.debug('UpdateService.triggerUpdate()');
await this.deploy.reloadApp();
}

async triggerUpdate() {
console.debug('UpdateService.triggerUpdate()');

Expand Down

0 comments on commit 89d59ba

Please sign in to comment.