Skip to content
Snippets Groups Projects
Commit 133700c9 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Start lock screen (pass code) implementaion

parent a3815b7c
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,17 @@ angular.module('cesium.app.controllers', ['cesium.services']) ...@@ -33,6 +33,17 @@ angular.module('cesium.app.controllers', ['cesium.services'])
} }
} }
}) })
.state('app.lock', {
cache: false,
url: "/lock",
views: {
'menuContent': {
templateUrl: "templates/common/view_passcode.html",
controller: 'PassCodeCtrl'
}
}
})
; ;
// if none of the above states are matched, use this as the fallback // if none of the above states are matched, use this as the fallback
...@@ -48,6 +59,8 @@ angular.module('cesium.app.controllers', ['cesium.services']) ...@@ -48,6 +59,8 @@ angular.module('cesium.app.controllers', ['cesium.services'])
.controller('AboutCtrl', AboutController) .controller('AboutCtrl', AboutController)
.controller('PassCodeCtrl', PassCodeController)
; ;
...@@ -286,10 +299,10 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ ...@@ -286,10 +299,10 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $
.then(function() { .then(function() {
$ionicSideMenuDelegate.toggleLeft(); $ionicSideMenuDelegate.toggleLeft();
$ionicHistory.clearHistory(); $ionicHistory.clearHistory();
return $ionicHistory.clearCache() return $ionicHistory.clearCache()
.then(function() { .then(function() {
UIUtils.loading.hide(); $scope.showHome();
$state.go('app.home');
}); });
}) })
.catch(UIUtils.onError()); .catch(UIUtils.onError());
...@@ -391,3 +404,9 @@ function AboutController($scope, csConfig) { ...@@ -391,3 +404,9 @@ function AboutController($scope, csConfig) {
'ngInject'; 'ngInject';
$scope.config = csConfig; $scope.config = csConfig;
} }
function PassCodeController($scope) {
'ngInject';
}
<ion-view left-buttons="leftButtons">
<ion-nav-title>
<span class="visible-xs visible-sm" translate>COMMON.PASSCODE.TITLE</span>
</ion-nav-title>
<ion-content scroll="false">
</ion-content>
</ion-view>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment