Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2839_HiveProjectManagement/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/usersCtrl.js @ 18242

Last change on this file since 18242 was 12516, checked in by dglaser, 9 years ago

#2388:

HeuristicLab.Services.Hive.DataAccess-3.3:

  • updated daos
  • changed statistics database schema
  • updated HiveStatisticsGenerator

HeuristicLab.Services.WebApp.Statistics-3.3:

  • added jobs, client and user page
File size: 852 bytes
Line 
1(function () {
2    var module = appStatisticsPlugin.getAngularModule();
3    module.controller('app.statistics.usersCtrl',
4        ['$scope', '$interval', 'app.statistics.userService', function ($scope, $interval, userService) {
5            $scope.interval = defaultPageUpdateInterval;
6
7            var getUsers = function() {
8                userService.getUsers({}, function(users) {
9                    users.splice(0, 1);
10                    $scope.users = users;
11                });
12            };
13
14            $scope.updateInterval = $interval(getUsers, $scope.interval);
15            var cancelInterval = $scope.$on('$locationChangeSuccess', function () {
16                $interval.cancel($scope.updateInterval);
17                cancelInterval();
18            });
19            getUsers(); // init page
20        }]
21    );
22})();
Note: See TracBrowser for help on using the repository browser.