show balance string in send tab
This commit is contained in:
parent
2c86b47c20
commit
160c3cec44
2 changed files with 10 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
recipientType: 'wallet',
|
recipientType: 'wallet',
|
||||||
coin: v.coin,
|
coin: v.coin,
|
||||||
network: v.network,
|
network: v.network,
|
||||||
|
balanceString: v.cachedBalance,
|
||||||
getAddress: function(cb) {
|
getAddress: function(cb) {
|
||||||
walletService.getAddress(v, false, cb);
|
walletService.getAddress(v, false, cb);
|
||||||
},
|
},
|
||||||
|
|
@ -104,12 +105,14 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
|
|
||||||
var completeContacts = [];
|
var completeContacts = [];
|
||||||
lodash.each(ab, function(v, k) {
|
lodash.each(ab, function(v, k) {
|
||||||
|
var c = getCoin(k);
|
||||||
completeContacts.push({
|
completeContacts.push({
|
||||||
name: lodash.isObject(v) ? v.name : v,
|
name: lodash.isObject(v) ? v.name : v,
|
||||||
address: k,
|
address: k,
|
||||||
email: lodash.isObject(v) ? v.email : null,
|
email: lodash.isObject(v) ? v.email : null,
|
||||||
recipientType: 'contact',
|
recipientType: 'contact',
|
||||||
coin: getCoin(k),
|
coin: c,
|
||||||
|
displayCoin: c.toUpperCase(),
|
||||||
getAddress: function(cb) {
|
getAddress: function(cb) {
|
||||||
return cb(null, k);
|
return cb(null, k);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@
|
||||||
<gravatar class="send-gravatar" name="{{item.name}}" width="30" email="{{item.email}}" ng-if="!isChromeApp"></gravatar>
|
<gravatar class="send-gravatar" name="{{item.name}}" width="30" email="{{item.email}}" ng-if="!isChromeApp"></gravatar>
|
||||||
</i>
|
</i>
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
|
<p>
|
||||||
|
<span>{{item.displayCoin}}</span>
|
||||||
|
</p>
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="show-more" ng-if="contactsShowMore" ng-click="showMore()" translate>
|
<div class="show-more" ng-if="contactsShowMore" ng-click="showMore()" translate>
|
||||||
|
|
@ -70,6 +73,9 @@
|
||||||
<a class="item item-icon-left item-icon-right" ng-repeat="item in list" ng-if="hasWallets && item.recipientType == 'wallet'" ng-click="goToAmount(item)">
|
<a class="item item-icon-left item-icon-right" ng-repeat="item in list" ng-if="hasWallets && item.recipientType == 'wallet'" ng-click="goToAmount(item)">
|
||||||
<i class="icon big-icon-svg" ng-if="item.recipientType == 'wallet'" ng-init="wallet = item" ng-include="'views/includes/walletIcon.html'"></i>
|
<i class="icon big-icon-svg" ng-if="item.recipientType == 'wallet'" ng-init="wallet = item" ng-include="'views/includes/walletIcon.html'"></i>
|
||||||
{{item.name}}
|
{{item.name}}
|
||||||
|
<p>
|
||||||
|
<span>{{item.balanceString}}</span>
|
||||||
|
</p>
|
||||||
<i class="icon bp-arrow-right"></i>
|
<i class="icon bp-arrow-right"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue