d252b43a52bb59bbf3ecb31aa354670082c9f6c9
[groupbasedpolicy.git] / groupbasedpolicy-ui / module / src / main / resources / gbp / tenant / tenant.controller.js
1 define([
2     'app/gbp/tenant/tenant.service',
3     'app/gbp/tenant/tenant-list.service',
4 ], function () {
5     'use strict';
6
7     angular.module('app.gbp').controller('TenantController', TenantController);
8
9     TenantController.$inject = ['$scope', 'TenantService', 'TenantListService'];
10     /* @ngInject */
11     function TenantController($scope, TenantService, TenantListService) {
12         $scope.tenantsTableQuery = {
13             order: "data.id",
14             limit: 25,
15             page: 1,
16             options: [25, 50, 100],
17             filter: ''
18         };
19
20         $scope.tenants = TenantListService.createList();
21         $scope.tenants.get('config');
22     }
23 });