mirror of https://github.com/BTCPrivate/copay.git
Fix limit per day message
This commit is contained in:
parent
59d668f292
commit
549d395ec1
|
@ -278,8 +278,13 @@ angular.module('copayApp.controllers').controller('buyAmazonController', functio
|
|||
amount = data.stateParams.amount;
|
||||
currency = data.stateParams.currency;
|
||||
|
||||
if (amount > 1000) {
|
||||
showErrorAndBack(null, gettextCatalog.getString('Purchase Amount is limited to USD 1000 per day'));
|
||||
$scope.limitPerDayMessage = gettextCatalog.getString('Purchase Amount is limited to {{limitPerDay}} {{currency}} per day', {
|
||||
limitPerDay: amazonService.limitPerDay,
|
||||
currency: currency
|
||||
});
|
||||
|
||||
if (amount > amazonService.limitPerDay) {
|
||||
showErrorAndBack(null, $scope.limitPerDayMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
|
|||
var root = {};
|
||||
var credentials = {};
|
||||
|
||||
root.limitPerDay = 1000;
|
||||
|
||||
/*
|
||||
* Development: 'testnet'
|
||||
* Production: 'livenet'
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
</div>
|
||||
<div class="amount-label">
|
||||
<div class="amount">{{amountUnitStr}}</div>
|
||||
<div class="alternative" translate>
|
||||
Purchase Amount is limited to USD 1000 per day
|
||||
<div class="alternative">
|
||||
{{limitPerDayMessage}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue