1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

created home and splash pages

This commit is contained in:
Kyle Spearrin
2016-09-20 16:40:04 -04:00
parent 47b500d7c0
commit 797a18b46a
9 changed files with 94 additions and 4 deletions

View File

@@ -29,10 +29,25 @@
$urlRouterProvider.otherwise(function ($injector, $location) {
var $state = $injector.get('$state');
$state.go('login');
$state.go('splash');
});
$stateProvider
.state('splash', {
url: '/splash',
controller: 'splashController',
templateUrl: 'app/global/splash.html',
data: { authorize: false },
params: { animation: null }
})
.state('home', {
url: '/home',
controller: 'homeController',
templateUrl: 'app/global/home.html',
data: { authorize: false },
params: { animation: null }
})
.state('login', {
url: '/login',
controller: 'accountsLoginController',
@@ -139,7 +154,7 @@
if (!isAuthenticated || tokenService.isTokenExpired(token)) {
event.preventDefault();
loginService.logOut(function () {
$state.go('login');
$state.go('home');
});
}
});