- project (work in progress)
This commit is contained in:
parent
4b8a67d208
commit
82f616051c
1 changed files with 0 additions and 6 deletions
|
@ -4,7 +4,6 @@ var welcome = angular.module('welcome', ['ngMaterial', 'seHub.services', 'ngRout
|
||||||
|
|
||||||
var app = angular.module('SeHub', ['ngMaterial', 'ngRoute', 'seHub.services', 'ngCookies', 'chart.js', '720kb.datepicker']);
|
var app = angular.module('SeHub', ['ngMaterial', 'ngRoute', 'seHub.services', 'ngCookies', 'chart.js', '720kb.datepicker']);
|
||||||
|
|
||||||
|
|
||||||
welcome.config(function($mdThemingProvider) {
|
welcome.config(function($mdThemingProvider) {
|
||||||
$mdThemingProvider.theme('default')
|
$mdThemingProvider.theme('default')
|
||||||
.primaryPalette('teal');
|
.primaryPalette('teal');
|
||||||
|
@ -12,18 +11,13 @@ welcome.config(function($mdThemingProvider) {
|
||||||
|
|
||||||
welcome.controller('welcomeController', ['$scope', 'apiService', '$cookies', '$window', function($scope, apiService, $cookies, $window) {
|
welcome.controller('welcomeController', ['$scope', 'apiService', '$cookies', '$window', function($scope, apiService, $cookies, $window) {
|
||||||
console.log("Welcome Controller");
|
console.log("Welcome Controller");
|
||||||
|
|
||||||
var uid = $cookies['com.sehub.www'];
|
var uid = $cookies['com.sehub.www'];
|
||||||
if(uid){
|
if(uid){
|
||||||
console.info("Session in Place");
|
console.info("Session in Place");
|
||||||
$window.location.href = DEBUG ? 'http://localhost:8080/home' : 'http://se-hub.appspot.com/home';
|
$window.location.href = DEBUG ? 'http://localhost:8080/home' : 'http://se-hub.appspot.com/home';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
app.config(['$routeProvider', '$locationProvider',
|
app.config(['$routeProvider', '$locationProvider',
|
||||||
function($routeProvider, $locationProvider) {
|
function($routeProvider, $locationProvider) {
|
||||||
$routeProvider
|
$routeProvider
|
||||||
|
|
Loading…
Reference in a new issue