refactor
This commit is contained in:
parent
6b4b675940
commit
dd154a3c4a
6 changed files with 172 additions and 100 deletions
|
|
@ -55,7 +55,10 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
|||
$scope.appName = appConfigService.nameCase;
|
||||
configService.whenAvailable(function(config) {
|
||||
$scope.locked = config.lock && config.lock.method;
|
||||
$scope.method = $scope.locked ? config.lock.method.charAt(0).toUpperCase() + config.lock.method.slice(1) : gettextCatalog.getString('Disabled');
|
||||
if (!$scope.locked || $scope.locked == 'none')
|
||||
$scope.method = gettextCatalog.getString('Disabled');
|
||||
else
|
||||
$scope.method = $scope.locked.charAt(0).toUpperCase() + config.lock.method.slice(1);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue