mirror of https://github.com/BTCPrivate/copay.git
FIX: UI in export wallet
This commit is contained in:
parent
ceb17c03f1
commit
0abc37396e
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue