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;
|
amount = data.stateParams.amount;
|
||||||
currency = data.stateParams.currency;
|
currency = data.stateParams.currency;
|
||||||
|
|
||||||
if (amount > 1000) {
|
$scope.limitPerDayMessage = gettextCatalog.getString('Purchase Amount is limited to {{limitPerDay}} {{currency}} per day', {
|
||||||
showErrorAndBack(null, gettextCatalog.getString('Purchase Amount is limited to USD 1000 per day'));
|
limitPerDay: amazonService.limitPerDay,
|
||||||
|
currency: currency
|
||||||
|
});
|
||||||
|
|
||||||
|
if (amount > amazonService.limitPerDay) {
|
||||||
|
showErrorAndBack(null, $scope.limitPerDayMessage);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@ angular.module('copayApp.services').factory('amazonService', function($http, $lo
|
||||||
var root = {};
|
var root = {};
|
||||||
var credentials = {};
|
var credentials = {};
|
||||||
|
|
||||||
|
root.limitPerDay = 1000;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Development: 'testnet'
|
* Development: 'testnet'
|
||||||
* Production: 'livenet'
|
* Production: 'livenet'
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="amount-label">
|
<div class="amount-label">
|
||||||
<div class="amount">{{amountUnitStr}}</div>
|
<div class="amount">{{amountUnitStr}}</div>
|
||||||
<div class="alternative" translate>
|
<div class="alternative">
|
||||||
Purchase Amount is limited to USD 1000 per day
|
{{limitPerDayMessage}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue