From 9dd3670fc8e0fd5dd5a12ee14617cbc0638189b1 Mon Sep 17 00:00:00 2001 From: Brendon Duncan Date: Sat, 1 Sep 2018 18:22:44 +1200 Subject: [PATCH] Remove sendMax button when using Shapeshift. --- src/js/controllers/amount.js | 3 +++ www/views/amount.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index f796f9559..9c522db70 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -11,6 +11,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, vm.alternativeUnit = ''; vm.amount = '0'; vm.availableFunds = ''; + vm.canSendAllAvailableFunds = true; // Use insufficient for logic, as when the amount is invalid, funds being // either sufficent or insufficient doesn't make sense. vm.fundsAreInsufficient = false; @@ -23,6 +24,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, vm.thirdParty = false; vm.unit = ''; + // Functions vm.changeUnit = changeUnit; vm.close = close; vm.findCurrency = findCurrency; @@ -97,6 +99,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, vm.thirdParty.data['minAmount'] = vm.minAmount = parseFloat(data.minimum); vm.thirdParty.data['maxAmount'] = vm.maxAmount = parseFloat(data.maxLimit); }); + vm.canSendAllAvailableFunds = false; } } } diff --git a/www/views/amount.html b/www/views/amount.html index 939937be8..170e6afef 100644 --- a/www/views/amount.html +++ b/www/views/amount.html @@ -53,7 +53,7 @@
-
+