New fee level: Urgent
This commit is contained in:
parent
14835c72e4
commit
860265fb48
2 changed files with 6 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ angular.module('copayApp.controllers').controller('preferencesFeeController', fu
|
||||||
var feeLevelValue = lodash.find($scope.feeLevels['livenet'], {
|
var feeLevelValue = lodash.find($scope.feeLevels['livenet'], {
|
||||||
level: $scope.currentFeeLevel
|
level: $scope.currentFeeLevel
|
||||||
});
|
});
|
||||||
|
if (lodash.isEmpty(feeLevelValue)) {
|
||||||
|
$scope.feePerKBUnit = null;
|
||||||
|
$scope.avgConfirmationTime = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
$scope.feePerKBUnit = feeLevelValue.feePerKBUnit;
|
$scope.feePerKBUnit = feeLevelValue.feePerKBUnit;
|
||||||
$scope.avgConfirmationTime = feeLevelValue.nbBlocks * 10;
|
$scope.avgConfirmationTime = feeLevelValue.nbBlocks * 10;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ angular.module('copayApp.services').factory('feeService', function($log, $stateP
|
||||||
|
|
||||||
// Constant fee options to translate
|
// Constant fee options to translate
|
||||||
root.feeOpts = {
|
root.feeOpts = {
|
||||||
|
urgent: gettext('Urgent'),
|
||||||
priority: gettext('Priority'),
|
priority: gettext('Priority'),
|
||||||
normal: gettext('Normal'),
|
normal: gettext('Normal'),
|
||||||
economy: gettext('Economy'),
|
economy: gettext('Economy'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue