Compare commits

...

1 commit

Author SHA1 Message Date
Brendon Duncan
9dd3670fc8 Remove sendMax button when using Shapeshift. 2018-09-01 18:22:44 +12:00
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;
}
}
}

View file

@ -53,7 +53,7 @@
</div>
<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()">
<span>
<span translate>Use All Available Funds</span>&ensp;