Skip to content

Commit

Permalink
fix: fixed the info in overview
Browse files Browse the repository at this point in the history
  • Loading branch information
ogozman committed Sep 26, 2016
1 parent ebb9972 commit a3c4661
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/resources/static/js/controllers/indexController.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ var app = angular.module('app');

app.controller('LoginController', function ($scope, AuthService, Session, $rootScope, $location, $cookieStore, $http) {
$scope.currentUser = null;
//$scope.URL = 'http://lore:8080';
$scope.URL = '';
$scope.URL = 'http://lore:8080';
//$scope.URL = '';
$scope.credential = {
"username": '',
"password": '',
Expand Down Expand Up @@ -88,6 +88,7 @@ app.controller('LoginController', function ($scope, AuthService, Session, $rootS
app.controller('IndexCtrl', function ($document, $scope, $compile, $routeParams, serviceAPI, $interval, $cookieStore, $location, AuthService, http, $rootScope, $window, $route) {
$('#side-menu').metisMenu();


$scope.adminRole = "ADMIN";
$scope.superProject = "*";
$scope.numberNSR = 0;
Expand Down Expand Up @@ -190,14 +191,22 @@ app.controller('IndexCtrl', function ($document, $scope, $compile, $routeParams,
console.log(newValue);
if (!angular.isUndefined(newValue) && !angular.isUndefined(oldValue)) {
$cookieStore.put('project', newValue);

loadNumbers();
loadQuota();
getConfig();
loadCurrentUser();
}
if (!angular.isUndefined(newValue) && angular.isUndefined(oldValue)) {
$cookieStore.put('project', newValue);

loadNumbers();
loadQuota();
getConfig();
loadCurrentUser();
}


});


Expand Down

0 comments on commit a3c4661

Please sign in to comment.