fix inaccurate warning on wallet storage change (#529)
This commit is contained in:
parent
85b78d72d7
commit
f7628e86f2
1 changed files with 7 additions and 1 deletions
|
|
@ -348,7 +348,13 @@ export class ConfigureAppComponent implements OnInit {
|
|||
if (resaveWallet && newStorage === this.storageOptions[1].value) {
|
||||
const UIkit = window['UIkit'];
|
||||
try {
|
||||
await UIkit.modal.confirm('<p class="uk-alert uk-alert-danger"><br><span class="uk-flex"><span uk-icon="icon: warning; ratio: 3;" class="uk-align-center"></span></span><span style="font-size: 18px;">' + this.translocoService.translate('configure-app.you-are-about-to-disable-storage-of-all-wallet-data-which') + '</span><br><br><b style="font-size: 18px;">' + this.translocoService.translate('reset-wallet.before-continuing-make-sure-you-have-saved-the-nano-seed') + '</b><br><br><span style="font-size: 18px;"><b>' + this.translocoService.translate('reset-wallet.you-will-not-be-able-to-recover-the-funds-without-a-backup') + '</b></span></p><br>');
|
||||
await UIkit.modal.confirm(
|
||||
`<p class="uk-alert uk-alert-danger"><br><span class="uk-flex"><span uk-icon="icon: warning; ratio: 3;" class="uk-align-center"></span></span>
|
||||
<span style="font-size: 18px;">
|
||||
${ this.translocoService.translate('configure-app.you-are-about-to-disable-storage-of-all-wallet-data-which') }
|
||||
</span><br>
|
||||
${ this.walletService.isConfigured() ? '<br><b style="font-size: 18px;">' + this.translocoService.translate('reset-wallet.before-continuing-make-sure-you-have-saved-the-nano-seed') + '</b><br><br><span style="font-size: 18px;"><b>' + this.translocoService.translate('reset-wallet.you-will-not-be-able-to-recover-the-funds-without-a-backup') + '</b></span></p><br>' : '' }`
|
||||
);
|
||||
} catch (err) {
|
||||
// pressing cancel, reset storage setting and interrupt
|
||||
this.selectedStorage = this.storageOptions[0].value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue