From 132939447e113f2a1bdf989c75800c311ce18804 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Dominguez Date: Fri, 27 Apr 2018 15:39:54 +0900 Subject: [PATCH] Fix - 291/292 - White screen & Remove the button "Send max amount" in receive specific amount" --- src/js/controllers/amount.js | 5 +++++ www/views/amount.html | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index 16724bf18..fd268671f 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -133,6 +133,11 @@ angular.module('copayApp.controllers').controller('amountController', function($ setAvailableUnits(); updateUnitUI(); + $scope.hasMaxAmount = true; + if ($ionicHistory.backView().stateName == 'tabs.receive') { + $scope.hasMaxAmount = false; + } + $scope.showMenu = $ionicHistory.backView() && ($ionicHistory.backView().stateName == 'tabs.send' || $ionicHistory.backView().stateName == 'tabs.bitpayCard'); $scope.recipientType = data.stateParams.recipientType || null; $scope.toAddress = data.stateParams.toAddress; diff --git a/www/views/amount.html b/www/views/amount.html index a1dd8bd7b..85f69100b 100644 --- a/www/views/amount.html +++ b/www/views/amount.html @@ -50,7 +50,7 @@
<> {{alternativeAmount || '0.00'}} {{alternativeUnit}}
-
-