fix alternativeAmount for list of pending transactions proposals

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-07 17:02:54 -03:00
commit b71bef495a
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -10,7 +10,9 @@
<div class="large-3 medium-3 small-4 columns">
<div class="size-12">
<span>{{out.value |noFractionNumber}} {{$root.wallet.settings.unitName}}</span>
<span>{{out.alternativeAmount|noFractionNumber}} {{out.alternativeIsoCode}}</span>
<span class="label secondary round">
{{out.alternativeAmount|noFractionNumber}} {{out.alternativeIsoCode}}
</span>
</div>
</div>
<div class="large-1 medium-1 small-1 columns fi-arrow-right"></div>