add dead view (wip) - fix last/current state

This commit is contained in:
JDonadio 2017-03-10 14:17:23 -03:00
commit 014995fd36
5 changed files with 79 additions and 13 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('lockappController', function($state, $scope, $log, configService, popupService, gettextCatalog, appConfigService) {
angular.module('copayApp.controllers').controller('lockappController', function($state, $scope, $timeout, $log, configService, popupService, gettextCatalog, appConfigService) {
$scope.$on("$ionicView.beforeEnter", function(event) {
var config = configService.getSync();
@ -34,6 +34,9 @@ angular.module('copayApp.controllers').controller('lockappController', function(
$scope.useFingerprint = {
enabled: false
};
$timeout(function() {
$scope.$apply();
});
return;
}
saveConfig();
@ -45,6 +48,9 @@ angular.module('copayApp.controllers').controller('lockappController', function(
$scope.usePincode = {
enabled: false
};
$timeout(function() {
$scope.$apply();
});
var opts = {
lockapp: {
pincode: {