Starting to handle payment request.

This commit is contained in:
Brendon Duncan 2018-07-24 16:53:12 -07:00
commit accb594c10
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,7 @@ function sendWalletController(gettextCatalog, configService, $filter, $ionicHist
var vm = this;
vm.headerTitle = '';
vm.isPaymentRequest = false;
vm.isSendFrom = true;
vm.walletsBch = [];
vm.walletsBtc = [];
@ -25,9 +26,9 @@ function sendWalletController(gettextCatalog, configService, $filter, $ionicHist
vm.isSendFrom = !!fromWalletId;
if (vm.isSendFrom) {
vm.headerTitle = gettextCatalog.getString('From');
vm.headerTitle = gettextCatalog.getString('From:');
} else {
vm.headerTitle = gettextCatalog.getString('To');
vm.headerTitle = gettextCatalog.getString('To:');
}
vm.walletsBch = profileService.getWallets({

View file

@ -3,7 +3,7 @@
<ion-nav-title>{{'Wallet to wallet transfer' | translate}}</ion-nav-title>
</ion-nav-bar>
<ion-content>
<div class="header--request" ng-if="isPaymentRequest">
<div class="header--request" ng-if="vm.isPaymentRequest">
<div class="header--request__title" translate>Paying</div>
<div class="header--request__amount" translate>$37.42 USD</div>
<div class="header--request__amount-alt" translate>0.04580000 BCH {{requestAmount}}</div>