show balance string in send tab

This commit is contained in:
Kadir Sekha 2017-11-02 12:50:26 +09:00
commit 160c3cec44
2 changed files with 10 additions and 1 deletions

View file

@ -78,6 +78,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
recipientType: 'wallet',
coin: v.coin,
network: v.network,
balanceString: v.cachedBalance,
getAddress: function(cb) {
walletService.getAddress(v, false, cb);
},
@ -104,12 +105,14 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
var completeContacts = [];
lodash.each(ab, function(v, k) {
var c = getCoin(k);
completeContacts.push({
name: lodash.isObject(v) ? v.name : v,
address: k,
email: lodash.isObject(v) ? v.email : null,
recipientType: 'contact',
coin: getCoin(k),
coin: c,
displayCoin: c.toUpperCase(),
getAddress: function(cb) {
return cb(null, k);
},