Fix - 291/292

- White screen & Remove the button "Send max amount" in receive specific amount"
This commit is contained in:
Jean-Baptiste Dominguez 2018-04-27 15:39:54 +09:00
commit 132939447e
2 changed files with 7 additions and 2 deletions

View file

@ -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;