|
@@ -97,11 +97,14 @@ export class SettingsPage {
|
|
|
this.publishPrivateKey();
|
|
|
}
|
|
|
else{
|
|
|
- this.createAlert("No Keys","No keys to save!");
|
|
|
+ this.createAlert("No Keys","Please generate the keypair before saving!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
async publishPublicKey() {
|
|
|
+ if (!this.publicKey || !this.privateKey) {
|
|
|
+ this.createAlert("No Keypair to Publish","Please generate the keypair before trying to publish!");
|
|
|
+ }
|
|
|
await this.openpgp.publishPubKey(this.publicKey);
|
|
|
this.showToast("Publc key published");
|
|
|
|