fix wording on error text
This commit is contained in:
parent
ed7d55d8ce
commit
c67d6ff80d
1 changed files with 5 additions and 5 deletions
|
|
@ -1090,19 +1090,19 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
}, 1);
|
}, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
function _countDownPaymentTime(time){
|
function _countDownPaymentTime(time) {
|
||||||
self.usePaypro = true;
|
self.usePaypro = true;
|
||||||
self.paymentExpired = false;
|
self.paymentExpired = false;
|
||||||
self.timeToExpire = time;
|
self.timeToExpire = time;
|
||||||
var countDown = $interval(function(){
|
var countDown = $interval(function() {
|
||||||
self.timeToExpire--;
|
if (self.timeToExpire <= Math.floor(Date.now() / 1000)) {
|
||||||
if(self.timeToExpire <= Math.floor(Date.now() / 1000)){
|
|
||||||
self.paymentExpired = true;
|
self.paymentExpired = true;
|
||||||
self.timeToExpire = null;
|
self.timeToExpire = null;
|
||||||
self._paypro = null;
|
self._paypro = null;
|
||||||
self.error = gettext('Cannot send the payment: time to sign expired');
|
self.error = gettext('Cannot sign: The payment request has expired');
|
||||||
$interval.cancel(countDown);
|
$interval.cancel(countDown);
|
||||||
}
|
}
|
||||||
|
self.timeToExpire--;
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue