From fcaa93a713ddc219569c0d227a3b508c8a52ef9b Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sat, 25 Jul 2015 18:25:26 +0300 Subject: [PATCH] Changed app color theme & fix to mainController --- templates/js/app.js | 6 ++++++ templates/js/controllers/mainController.js | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/js/app.js b/templates/js/app.js index 5f4777f..cb5558a 100644 --- a/templates/js/app.js +++ b/templates/js/app.js @@ -79,3 +79,9 @@ app.config(['$routeProvider', '$locationProvider', } ]); +app.config(function($mdThemingProvider) { + $mdThemingProvider.theme('default') + .primaryPalette('teal') + .accentPalette('blue-grey'); + +}); \ No newline at end of file diff --git a/templates/js/controllers/mainController.js b/templates/js/controllers/mainController.js index 2e6c04d..b5e5632 100644 --- a/templates/js/controllers/mainController.js +++ b/templates/js/controllers/mainController.js @@ -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;