From a4731e7f06160960d143526cd866bfdcb5eae763 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Fri, 14 Aug 2015 16:56:13 -0300 Subject: [PATCH] Fix txp modals for single outputs --- public/views/modals/txp-details.html | 8 ++++---- src/js/controllers/walletHome.js | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/public/views/modals/txp-details.html b/public/views/modals/txp-details.html index dc8c683bd..9a504c217 100644 --- a/public/views/modals/txp-details.html +++ b/public/views/modals/txp-details.html @@ -14,15 +14,15 @@ -
Payment finally rejected
diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js index 50fa2a54b..1f633431c 100644 --- a/src/js/controllers/walletHome.js +++ b/src/js/controllers/walletHome.js @@ -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;