REF: remove slide label

This commit is contained in:
Gabriel Bazán 2018-02-20 10:13:20 -03:00
parent ae47d51a0b
commit cc00ecdb18
3 changed files with 27 additions and 28 deletions

View File

@ -122,6 +122,5 @@
</ion-content>
<ion-footer>
<button ion-button full class="button-footer" (click)="approve(tx, wallet)" [disabled]="!wallet || noWalletMessage || critialError || !tx.txp[wallet.id]"
translate>Click to send</button>
</ion-footer>
<button ion-button full class="button-footer" (click)="approve(tx, wallet)" [disabled]="!wallet || noWalletMessage || critialError || !tx.txp[wallet.id]">{{buttonText}}</button>
</ion-footer>

View File

@ -253,23 +253,23 @@ export class ConfirmPage {
private setButtonText(isMultisig: boolean, isPayPro: boolean): void {
if (isPayPro) {
if (this.isCordova && !this.isWindowsPhoneApp) {
this.buttonText = this.translate.instant('Slide to pay');
} else {
this.buttonText = this.translate.instant('Click to pay');
}
//if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to pay');
// } else {
this.buttonText = this.translate.instant('Click to pay');
// }
} else if (isMultisig) {
if (this.isCordova && !this.isWindowsPhoneApp) {
this.buttonText = this.translate.instant('Slide to accept');
} else {
this.buttonText = this.translate.instant('Click to accept');
}
//if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to accept');
//} else {
this.buttonText = this.translate.instant('Click to accept');
//}
} else {
if (this.isCordova && !this.isWindowsPhoneApp) {
this.buttonText = this.translate.instant('Slide to send');
} else {
this.buttonText = this.translate.instant('Click to send');
}
//if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to send');
//} else {
this.buttonText = this.translate.instant('Click to send');
//}
}
}

View File

@ -120,18 +120,18 @@ export class TxpDetailsPage {
}).length == this.tx.requiredSignatures - 1;
if (lastSigner) {
if (this.isCordova && !this.isWindowsPhoneApp) {
this.buttonText = this.translate.instant('Slide to send');
} else {
this.buttonText = this.translate.instant('Click to send');
}
//if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to send');
//} else {
this.buttonText = this.translate.instant('Click to send');
//}
this.successText = this.translate.instant('Payment Sent');
} else {
if (this.isCordova && !this.isWindowsPhoneApp) {
this.buttonText = this.translate.instant('Slide to accept');
} else {
this.buttonText = this.translate.instant('Click to accept');
}
//if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to accept');
//} else {
this.buttonText = this.translate.instant('Click to accept');
//}
this.successText = this.translate.instant('Payment Accepted');
}
}