FIX: UI in export wallet

This commit is contained in:
Gabriel Bazán 2018-03-20 10:37:05 -03:00
parent ceb17c03f1
commit 0abc37396e
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
</ion-segment>
</div>
<div [ngSwitch]="segments">
<ion-list *ngSwitchCase="'file/text'">
<ion-list *ngSwitchCase="'file/text'" margin-top>
<div *ngIf="!backupWalletPlainText">
<form [formGroup]="exportWalletForm">
<ion-item>
@ -74,7 +74,7 @@
<ion-textarea rows="12">{{backupWalletPlainText}}</ion-textarea>
</div>
</ion-list>
<ion-list *ngSwitchCase="'qrCode'">
<ion-list *ngSwitchCase="'qr-code'">
<div class="qrCode" *ngIf="supported">
<ngx-qrcode qrc-value="{{exportWalletInfo}}" qrc-class="aclass" qrc-errorCorrectionLevel="M"></ngx-qrcode>
<ion-item-divider text-wrap>

View File

@ -107,7 +107,7 @@ export class WalletExportPage {
public generateQrCode() {
if (this.exportWalletInfo || !this.isEncrypted) {
this.segments = 'qrCode';
this.segments = 'qr-code';
}
this.getPassword().then((password: string) => {
@ -121,7 +121,7 @@ export class WalletExportPage {
this.exportWalletInfo = code;
}
this.segments = 'qrCode';
this.segments = 'qr-code';
}).catch((err: string) => {
this.popupProvider.ionicAlert(this.translate.instant('Error'), err);
});