Remove sendMax button when using Shapeshift.

This commit is contained in:
Brendon Duncan 2018-09-01 18:22:44 +12:00
commit 9dd3670fc8
2 changed files with 4 additions and 1 deletions

View file

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