Payment request expiration.
This commit is contained in:
parent
d183077a20
commit
e29f97eddf
2 changed files with 3 additions and 1 deletions
|
|
@ -510,6 +510,7 @@ function reviewController(addressbookService, bitcoinCashJsService, bitcore, bit
|
|||
function setExpiredValues() {
|
||||
vm.paymentExpired = true;
|
||||
vm.remainingTimeStr = gettextCatalog.getString('Expired');
|
||||
vm.readyToSend = false;
|
||||
if (countDown) $interval.cancel(countDown);
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@
|
|||
ng-if="vm.thirdParty && vm.thirdParty.id === 'bip70' && vm.thirdParty.name === 'bitpay'">
|
||||
<img src="img/icon-bitpay.svg" class="bg">
|
||||
<h2>BitPay</h2>
|
||||
<p translate>Payment expires: {{vm.remainingTimeStr}}</p>
|
||||
<p translate ng-if="!vm.paymentExpired">Payment expires: {{vm.remainingTimeStr}}</p>
|
||||
<p class="warning" translate ng-if="vm.paymentExpired">Payment request has expired</p>
|
||||
</div>
|
||||
<div class="item-content item-content-compact" ng-init="addressExpanded = false" ng-if="vm.destination.kind === 'address' && !vm.thirdParty">
|
||||
<div class="address-frame" ng-class="{ 'expanded': addressExpanded }" ng-click="addressExpanded = !addressExpanded">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue