Changed app color theme & fix to mainController
This commit is contained in:
parent
e9dab54c2c
commit
fcaa93a713
2 changed files with 7 additions and 3 deletions
|
@ -79,3 +79,9 @@ app.config(['$routeProvider', '$locationProvider',
|
|||
}
|
||||
]);
|
||||
|
||||
app.config(function($mdThemingProvider) {
|
||||
$mdThemingProvider.theme('default')
|
||||
.primaryPalette('teal')
|
||||
.accentPalette('blue-grey');
|
||||
|
||||
});
|
|
@ -1,5 +1,3 @@
|
|||
var DEBUG = true;
|
||||
|
||||
angular.module('SeHub')
|
||||
.controller('mainController',
|
||||
['$scope', '$rootScope', 'dataService', 'apiService', '$cookies',
|
||||
|
@ -16,7 +14,7 @@ angular.module('SeHub')
|
|||
if (status == 204) {
|
||||
console.error("No User Found!");
|
||||
$cookieStore.remove('com.sehub.www');
|
||||
window.location = DEBUG ? 'http://localhost:8080' : 'http://se-hub.appstpot.com/';
|
||||
window.location = 'http://se-hub.appstpot.com/';
|
||||
}
|
||||
$scope.loadingData = false;
|
||||
$scope.user = data;
|
||||
|
|
Loading…
Reference in a new issue