toggle contact name/address

This commit is contained in:
JDonadio 2017-02-22 15:08:51 -05:00
commit 9817af964e
3 changed files with 13 additions and 4 deletions

View file

@ -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() {