Uses object for level options

This commit is contained in:
Gustavo Maximiliano Cortez 2015-07-30 15:26:16 -03:00
commit 458a17e0be
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 9 additions and 9 deletions

View file

@ -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;

View file

@ -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;