Adds Fee to TXP modal

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-22 11:33:53 -03:00
commit d1c55e0876
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 6 additions and 0 deletions

View file

@ -349,6 +349,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
lodash.each(txps, function(tx) {
var amount = tx.amount * self.satToUnit;
tx.amountStr = profileService.formatAmount(tx.amount) + ' ' + config.unitName;
tx.feeStr = profileService.formatAmount(tx.fee) + ' ' + config.unitName;
tx.alternativeAmount = rateService.toFiat(tx.amount, config.alternativeIsoCode) ? rateService.toFiat(tx.amount, config.alternativeIsoCode).toFixed(2) : 'N/A';
tx.alternativeAmountStr = tx.alternativeAmount + " " + config.alternativeIsoCode;
tx.alternativeIsoCode = config.alternativeIsoCode;