Fix txp modals for single outputs

This commit is contained in:
Gustavo Maximiliano Cortez 2015-08-14 16:56:13 -03:00
commit a4731e7f06
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 7 additions and 4 deletions

View file

@ -204,6 +204,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
var action = lodash.find(tx.actions, {
copayerId: fc.credentials.copayerId
});
tx.amountStr = profileService.formatAmount(tx.amount) + ' ' + 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;
$scope.tx = tx;
if (!action && tx.status == 'pending')
$scope.tx.pendingForUs = true;