Changed app color theme & fix to mainController

This commit is contained in:
Sagi Dayan 2015-07-25 18:25:26 +03:00
parent e9dab54c2c
commit fcaa93a713
2 changed files with 7 additions and 3 deletions

View file

@ -79,3 +79,9 @@ app.config(['$routeProvider', '$locationProvider',
} }
]); ]);
app.config(function($mdThemingProvider) {
$mdThemingProvider.theme('default')
.primaryPalette('teal')
.accentPalette('blue-grey');
});

View file

@ -1,5 +1,3 @@
var DEBUG = true;
angular.module('SeHub') angular.module('SeHub')
.controller('mainController', .controller('mainController',
['$scope', '$rootScope', 'dataService', 'apiService', '$cookies', ['$scope', '$rootScope', 'dataService', 'apiService', '$cookies',
@ -16,7 +14,7 @@ angular.module('SeHub')
if (status == 204) { if (status == 204) {
console.error("No User Found!"); console.error("No User Found!");
$cookieStore.remove('com.sehub.www'); $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.loadingData = false;
$scope.user = data; $scope.user = data;