Remove sendMax button when using Shapeshift.
This commit is contained in:
parent
1c450418b8
commit
9dd3670fc8
2 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
|
||||||
vm.alternativeUnit = '';
|
vm.alternativeUnit = '';
|
||||||
vm.amount = '0';
|
vm.amount = '0';
|
||||||
vm.availableFunds = '';
|
vm.availableFunds = '';
|
||||||
|
vm.canSendAllAvailableFunds = true;
|
||||||
// Use insufficient for logic, as when the amount is invalid, funds being
|
// Use insufficient for logic, as when the amount is invalid, funds being
|
||||||
// either sufficent or insufficient doesn't make sense.
|
// either sufficent or insufficient doesn't make sense.
|
||||||
vm.fundsAreInsufficient = false;
|
vm.fundsAreInsufficient = false;
|
||||||
|
|
@ -23,6 +24,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory,
|
||||||
vm.thirdParty = false;
|
vm.thirdParty = false;
|
||||||
vm.unit = '';
|
vm.unit = '';
|
||||||
|
|
||||||
|
// Functions
|
||||||
vm.changeUnit = changeUnit;
|
vm.changeUnit = changeUnit;
|
||||||
vm.close = close;
|
vm.close = close;
|
||||||
vm.findCurrency = findCurrency;
|
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['minAmount'] = vm.minAmount = parseFloat(data.minimum);
|
||||||
vm.thirdParty.data['maxAmount'] = vm.maxAmount = parseFloat(data.maxLimit);
|
vm.thirdParty.data['maxAmount'] = vm.maxAmount = parseFloat(data.maxLimit);
|
||||||
});
|
});
|
||||||
|
vm.canSendAllAvailableFunds = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="keypad-container" style="background: #fff; position: absolute; bottom: 0; margin-bottom: 57px; width: 100%;">
|
<div class="keypad-container" style="background: #fff; position: absolute; bottom: 0; margin-bottom: 57px; width: 100%;">
|
||||||
<div class="sendmax" ng-if="vm.availableFunds && !vm.isRequestingSpecificAmount">
|
<div class="sendmax" ng-if="vm.availableFunds && !vm.isRequestingSpecificAmount && vm.canSendAllAvailableFunds">
|
||||||
<button class="button button-sendmax" ng-click="vm.sendMax()">
|
<button class="button button-sendmax" ng-click="vm.sendMax()">
|
||||||
<span>
|
<span>
|
||||||
<span translate>Use All Available Funds</span> 
|
<span translate>Use All Available Funds</span> 
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue