Skip to content

Commit

Permalink
gracefully handle qr scan errors, improve help texts
Browse files Browse the repository at this point in the history
  • Loading branch information
gammelby committed Aug 28, 2019
1 parent d0be4a1 commit 41fa481
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/nabto.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class NabtoService {
}
}

private getPublicDetails(deviceId: string): Promise<NabtoDevice> {
public getPublicDetails(deviceId: string): Promise<NabtoDevice> {
return new Promise((resolve, reject) => {
this.invokeRpc(deviceId, "get_public_device_info.json")
.then((details:any) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/acl-add/acl-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class AclAddPage {
this.name = json.n;
this.fingerprint = json.f;
}
});
}).catch((error) => this.showToast(error));
}

clear() {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/device-add/device-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class DeviceAddPage {
if (json != null) {
this.deviceId = json.i;
}
});
}).catch((error) => this.showToast(error));
}

clear() {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/overview/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
No known devices
</ion-card-header>
<ion-card-content>
Add a device by clicking the button below to scan the local network for available devices.
Add a device using the buttons below: Either scan the local network for available devices or manually enter a device id.
</ion-card-content>
</ion-card>

Expand Down

0 comments on commit 41fa481

Please sign in to comment.