Import alert box and notification message
This commit is contained in:
parent
ec5fac99f3
commit
26289113b3
2 changed files with 11 additions and 5 deletions
|
|
@ -12,10 +12,16 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="uk-card uk-card-default uk-margin" *ngIf="activePanel == 'import'">
|
<div class="uk-card uk-card-default uk-margin" *ngIf="activePanel == 'import'">
|
||||||
<div *ngIf="walletService.isConfigured()" class="uk-alert uk-alert-danger">
|
<div *ngIf="walletService.isConfigured()">
|
||||||
<b>You already have a local Nault wallet configured</b><br>
|
<div *ngIf="!walletService.isLedgerWallet()" class="uk-alert uk-alert-danger">
|
||||||
Before going any further, be 100% certain you have backed up the secret recovery phrase for your current wallet!<br>
|
<b>You already have a local Nault wallet configured</b><br>
|
||||||
Without it, <b>any funds you have will become completely unrecoverable!</b>
|
Before going any further, be 100% certain you have backed up the secret recovery phrase for your current wallet!<br>
|
||||||
|
Without it, <b>any funds you have will become completely unrecoverable!</b>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="walletService.isLedgerWallet()" class="uk-alert uk-alert-info">
|
||||||
|
<b>You are about to import a new wallet, which will disconnect your Ledger device from Nault</b><br>
|
||||||
|
If you need to use the Ledger wallet later, simply import your device again.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="uk-card-header">
|
<div class="uk-card-header">
|
||||||
<h3 class="uk-card-title">Confirm Wallet Import</h3>
|
<h3 class="uk-card-title">Confirm Wallet Import</h3>
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ export class LedgerService {
|
||||||
this.ledger.status = LedgerStatus.NOT_CONNECTED;
|
this.ledger.status = LedgerStatus.NOT_CONNECTED;
|
||||||
this.ledgerStatus$.next({ status: this.ledger.status, statusText: `Unable to load Ledger transport: ${err.message || err}` });
|
this.ledgerStatus$.next({ status: this.ledger.status, statusText: `Unable to load Ledger transport: ${err.message || err}` });
|
||||||
if (!hideNotifications) {
|
if (!hideNotifications) {
|
||||||
this.notifications.sendWarning(`Ledger transport failed. Make sure your Ledger is unlocked. Restart the nano app on your Ledger if the error persists`);
|
this.notifications.sendWarning(`Ledger connection failed. Make sure your Ledger is unlocked. Restart the nano app on your Ledger if the error persists`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.resetLedger();
|
this.resetLedger();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue