Skip to content

Commit

Permalink
Fix upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
schinken committed Oct 16, 2016
1 parent b5bbf78 commit c614fa0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3 class="modal-title" translate>customTransactionHeadline</h3>
<alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{alert.msg}}</alert>

<alert ng-if="transactionMode == 'spend' && boundary.exceedsLowerLimit(user.balance - transactionValue) ||
transactionMode == 'charge' && boundary.exceedsLowerLimit(user.balance + transactionValue)"
transactionMode == 'charge' && boundary.exceedsUpperLimit(user.balance + transactionValue)"
type="alert.type">
<span translate>transactionBoundaryReached</span>
</alert>
Expand All @@ -27,7 +27,7 @@ <h3 class="modal-title" translate>customTransactionHeadline</h3>
ng-click="submitTransaction(transactionValue)"
ng-if="transactionMode == 'spend'" translate>customTransactionPay</button>
<button class="btn btn-lg btn-success"
ng-disabled="boundary.exceedsLowerLimit(user.balance + transactionValue)"
ng-disabled="boundary.exceedsUpperLimit(user.balance + transactionValue)"
ng-click="submitTransaction(transactionValue)"
ng-if="transactionMode == 'charge'" translate>customTransactionCharge</button>
<button class="btn btn-lg btn-default" ng-click="cancel()" translate>cancel</button>
Expand Down

0 comments on commit c614fa0

Please sign in to comment.