Fix: Modal message when sent a proposal

This commit is contained in:
Gabriel Masclef 2018-02-23 17:21:38 -03:00
parent 6da3b1025f
commit 4417e91853
No known key found for this signature in database
GPG Key ID: DD6D7EAADE12280D
1 changed files with 4 additions and 1 deletions

View File

@ -45,6 +45,7 @@ export class ConfirmPage {
public showAddress: boolean;
public walletSelectorTitle: string;
public buttonText: string;
public successText: string;
public paymentExpired: boolean;
public remainingTimeStr: string;
@ -254,8 +255,10 @@ export class ConfirmPage {
this.buttonText = this.translate.instant('Click to pay');
} else if (isMultisig) {
this.buttonText = this.translate.instant('Click to accept');
this.successText = this.wallet.credentials.n == 1 ? this.translate.instant('Payment Sent') : this.translate.instant('Proposal created');
} else {
this.buttonText = this.translate.instant('Click to send');
this.successText = this.translate.instant('Payment Sent');
}
}
@ -599,7 +602,7 @@ export class ConfirmPage {
}
private openFinishModal(onlyPublish?: boolean) {
let params = {};
let params: any = { finishText: this.successText };
if (onlyPublish) {
let finishText = this.translate.instant('Payment Published');
let finishComment = this.translate.instant('You could sign the transaction later in your wallet details');