refresh selected option
This commit is contained in:
parent
b6f8013880
commit
5b1c84b5f7
2 changed files with 8 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('lockController', function($st
|
|||
var PIN = 'pin';
|
||||
var FINGERPRINT = 'fingerprint';
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event) {
|
||||
function init() {
|
||||
var config = configService.getSync();
|
||||
$scope.locking = config.lock.method != PIN;
|
||||
|
||||
|
|
@ -34,6 +34,10 @@ angular.module('copayApp.controllers').controller('lockController', function($st
|
|||
|
||||
$scope.currentOption = lodash.find($scope.options, 'value');
|
||||
processWallets();
|
||||
};
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event) {
|
||||
init();
|
||||
});
|
||||
|
||||
function processWallets() {
|
||||
|
|
@ -77,6 +81,7 @@ angular.module('copayApp.controllers').controller('lockController', function($st
|
|||
if (config.lock.method == PIN) {
|
||||
askForDisablePin(function(disablePin) {
|
||||
if (disablePin) saveConfig(FINGERPRINT);
|
||||
else init();
|
||||
});
|
||||
} else saveConfig(FINGERPRINT);
|
||||
} else if (method == PIN) {
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
|||
$scope.isDevel = platformInfo.isDevel;
|
||||
$scope.appName = appConfigService.nameCase;
|
||||
configService.whenAvailable(function(config) {
|
||||
$scope.locked = config.lock.method == 'fingerprint' || config.lock.value || false;
|
||||
$scope.method = config.lock.method != '' ? config.lock.method.charAt(0).toUpperCase() + config.lock.method.slice(1) : gettextCatalog.getString('Disabled');
|
||||
$scope.locked = config.lock && config.lock.method != '' ? true : false;
|
||||
$scope.method = config.lock && config.lock.method != '' ? config.lock.method.charAt(0).toUpperCase() + config.lock.method.slice(1) : gettextCatalog.getString('Disabled');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue