diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index 97c8b1e49..a0120d1da 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -14,6 +14,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( toAmount = data.stateParams.toAmount; cachedSendMax = {}; $scope.showFeeFiat = false; + $scope.showAddress = false; $scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false; $scope.recipientType = data.stateParams.recipientType || null; $scope.toAddress = data.stateParams.toAddress; @@ -129,6 +130,10 @@ angular.module('copayApp.controllers').controller('confirmController', function( $scope.showFeeFiat = !$scope.showFeeFiat; }; + $scope.toggleAddress = function() { + $scope.showAddress = !$scope.showAddress; + }; + var initConfirm = function() { if ($scope.paypro) _paymentTimeControl($scope.paypro.expires); @@ -152,7 +157,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.showFeeFiat = $scope.showAddress = false; }; $scope.getSendMaxInfo = function() { diff --git a/src/sass/views/confirm.scss b/src/sass/views/confirm.scss index f55fb4d14..71415b71c 100644 --- a/src/sass/views/confirm.scss +++ b/src/sass/views/confirm.scss @@ -17,4 +17,7 @@ .wallet-name { margin-top: -3px; } + .toggle { + cursor: pointer; + } } diff --git a/www/views/confirm.html b/www/views/confirm.html index ac1828d92..02d652f65 100644 --- a/www/views/confirm.html +++ b/www/views/confirm.html @@ -55,9 +55,10 @@ {{toName}} -
+
- {{toName}} + {{toName}} + {{toAddress}}
@@ -83,7 +84,7 @@ -
+
{{'Fee' | translate}}: {{feeLevel | translate}} {{fee || '...'}} {{feeFiat || '...'}}