Dislaying fiat amounts in Send tab, according to Price Display setting.
This commit is contained in:
parent
05a8952f87
commit
e0511ccb53
1 changed files with 8 additions and 1 deletions
|
|
@ -72,15 +72,22 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
|
||||||
return item.network == 'livenet';
|
return item.network == 'livenet';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var walletList = [];
|
var walletList = [];
|
||||||
lodash.each(walletsToTransfer, function(v) {
|
lodash.each(walletsToTransfer, function(v) {
|
||||||
|
var displayBalanceAsFiat =
|
||||||
|
v.status.alternativeBalanceAvailable &&
|
||||||
|
config.wallet.settings.priceDisplay === 'fiat';
|
||||||
|
|
||||||
walletList.push({
|
walletList.push({
|
||||||
color: v.color,
|
color: v.color,
|
||||||
name: v.name,
|
name: v.name,
|
||||||
recipientType: 'wallet',
|
recipientType: 'wallet',
|
||||||
coin: v.coin,
|
coin: v.coin,
|
||||||
network: v.network,
|
network: v.network,
|
||||||
balanceString: v.cachedBalance,
|
balanceString: displayBalanceAsFiat ?
|
||||||
|
v.status.totalBalanceAlternative + ' ' + v.status.alternativeIsoCode :
|
||||||
|
v.cachedBalance,
|
||||||
getAddress: function(cb) {
|
getAddress: function(cb) {
|
||||||
walletService.getAddress(v, false, cb);
|
walletService.getAddress(v, false, cb);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue