allow emergency fee

This commit is contained in:
Matias Alejo Garcia 2015-06-30 11:04:34 -03:00
commit 0eb612ec3c
2 changed files with 14 additions and 2 deletions

View file

@ -7,8 +7,16 @@
<div class="content preferences" ng-controller="preferencesFeeController as prefFee">
<div ng-repeat="fee in prefFee.feeOpts" ng-click="prefFee.save(fee)" class="line-b p20 size-14">
<span>{{fee.name|translate}} (<span translate>{{fee.value}} bits per kB</span>)</span>
<span ng-if="fee.red" style="color:red">{{fee.name|translate}} (<span translate>{{fee.value}} bits per kB</span>)</span>
<span ng-if="!fee.red">{{fee.name|translate}} (<span translate>{{fee.value}} bits per kB</span>)</span>
<i class="fi-check size-16 right" ng-show="prefFee.feeName == fee.name"></i>
</div>
<div class="row column m20t">
<div class="text-gray size-12 text-center m20b" translate>
Bitcoin Transactions may include a fee that is collected by the miner that include it on a block. Higher the fee, higher is the incentive of the miners to include it. The 'Emergency' level should only be used when there is a network congestion.
</div>
</div>
</div>
<div class="extra-margin-bottom"></div>

View file

@ -13,7 +13,11 @@ angular.module('copayApp.controllers').controller('preferencesFeeController',
}, {
name: gettext('Economy'),
value: 10,
}];
}, {
name: gettext('Emergency'),
red: true,
value: 500,
}, ];
this.save = function(newFee) {
var opts = {