add dead view (wip) - fix last/current state
This commit is contained in:
parent
824362af7c
commit
014995fd36
5 changed files with 79 additions and 13 deletions
13
src/js/controllers/deadview.js
Normal file
13
src/js/controllers/deadview.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('deadviewController', function($state, $scope, $ionicHistory, fingerprintService) {
|
||||
|
||||
$scope.requestFingerprint = function() {
|
||||
fingerprintService.check('unlockingApp', function(err) {
|
||||
if (err) return;
|
||||
$state.transitionTo('tabs.home').then(function() {
|
||||
$ionicHistory.clearHistory();
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue