From b71bef495a2d2ad929b4b50aa2c0d1cbfa47ae0a Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 7 Nov 2014 17:02:54 -0300 Subject: [PATCH] fix alternativeAmount for list of pending transactions proposals --- js/services/controllerUtils.js | 3 +++ views/includes/transaction.html | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index a351db6cb..02e4179d1 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -349,6 +349,9 @@ angular.module('copayApp.services') var w = $rootScope.wallet; if (!w) return root.onErrorDigest(); var res = w.getPendingTxProposals(); + _.each(res.txs, function(tx) { + root.computeAlternativeAmount(w, tx); + }); $rootScope.txps = res.txs; if ($rootScope.pendingTxCount < res.pendingForUs) { $rootScope.txAlertCount = res.pendingForUs; diff --git a/views/includes/transaction.html b/views/includes/transaction.html index f4847c54b..73e72ecf8 100644 --- a/views/includes/transaction.html +++ b/views/includes/transaction.html @@ -10,7 +10,9 @@
{{out.value |noFractionNumber}} {{$root.wallet.settings.unitName}} - {{out.alternativeAmount|noFractionNumber}} {{out.alternativeIsoCode}} + + {{out.alternativeAmount|noFractionNumber}} {{out.alternativeIsoCode}} +