mirror of https://github.com/BTCPrivate/copay.git
Uses object for level options
This commit is contained in:
parent
7c69e86771
commit
458a17e0be
|
@ -81,7 +81,7 @@
|
|||
<span translate>Bitcoin Network Fee Policy</span>
|
||||
<span class="right text-gray">
|
||||
<i class="icon-arrow-right3 size-24 right"></i>
|
||||
<span class="text-capitalize">{{index.currentFeeLevel|translate}}</span>
|
||||
<span class="text-capitalize">{{index.feeOpts[index.currentFeeLevel]|translate}}</span>
|
||||
</span>
|
||||
</li>
|
||||
<li class="line-b p20" ng-click="$root.go('preferencesBwsUrl')">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<ul class="no-bullet m0 size-14">
|
||||
<li ng-repeat="fee in (index.network == 'livenet' ? index.feeLevels.livenet : index.feeLevels.testnet)"
|
||||
ng-click="prefFee.save(fee.level)" class="line-b p20">
|
||||
<span class="text-capitalize">{{fee.level|translate}}</span>
|
||||
<span class="text-capitalize">{{index.feeOpts[fee.level]|translate}}</span>
|
||||
<i class="fi-check size-16 right" ng-show="index.currentFeeLevel == fee.level"></i>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -10,12 +10,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
return (parseFloat(number.toPrecision(12)));
|
||||
};
|
||||
|
||||
|
||||
self.goHome = function() {
|
||||
go.walletHome();
|
||||
};
|
||||
|
||||
|
||||
self.menu = [{
|
||||
'title': gettext('Home'),
|
||||
'icon': 'icon-home',
|
||||
|
@ -66,6 +64,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
isoCode: 'ja',
|
||||
}];
|
||||
|
||||
self.feeOpts = feeService.feeOpts;
|
||||
|
||||
self.setOngoingProcess = function(processName, isOn) {
|
||||
$log.debug('onGoingProcess', processName, isOn);
|
||||
self[processName] = isOn;
|
||||
|
|
|
@ -4,11 +4,11 @@ angular.module('copayApp.services').factory('feeService', function($log, profile
|
|||
var root = {};
|
||||
|
||||
// Constant fee options to translate
|
||||
var feeOpts = [
|
||||
gettextCatalog.getString('priority'),
|
||||
gettextCatalog.getString('normal'),
|
||||
gettextCatalog.getString('economy')
|
||||
];
|
||||
root.feeOpts = {
|
||||
priority: gettextCatalog.getString('Priority'),
|
||||
normal: gettextCatalog.getString('Normal'),
|
||||
economy: gettextCatalog.getString('Economy')
|
||||
};
|
||||
|
||||
root.getCurrentFeeValue = function(cb) {
|
||||
var fc = profileService.focusedClient;
|
||||
|
|
Loading…
Reference in New Issue