diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 759ce6cf6..97c8b1e49 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -13,6 +13,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( toAmount = data.stateParams.toAmount; cachedSendMax = {}; + $scope.showFeeFiat = false; $scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false; $scope.recipientType = data.stateParams.recipientType || null; $scope.toAddress = data.stateParams.toAddress; @@ -124,6 +125,10 @@ angular.module('copayApp.controllers').controller('confirmController', function( }); }; + $scope.toggleFeeValue = function() { + $scope.showFeeFiat = !$scope.showFeeFiat; + }; + var initConfirm = function() { if ($scope.paypro) _paymentTimeControl($scope.paypro.expires); @@ -147,6 +152,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( function resetValues() { $scope.displayAmount = $scope.displayUnit = $scope.fee = $scope.alternativeAmountStr = $scope.insufficientFunds = $scope.noMatchingWallet = null; + $scope.showFeeFiat = false; }; $scope.getSendMaxInfo = function() { @@ -363,6 +369,9 @@ angular.module('copayApp.controllers').controller('confirmController', function( function apply(txp) { $scope.fee = txFormatService.formatAmountStr(txp.fee); + txFormatService.formatAlternativeStr(txp.fee, function(v) { + $scope.feeFiat = v; + }); $scope.txp = txp; $timeout(function() { $scope.$apply(); diff --git a/www/views/confirm.html b/www/views/confirm.html index 5174b02b6..ac1828d92 100644 --- a/www/views/confirm.html +++ b/www/views/confirm.html @@ -85,9 +85,8 @@