Browse Source

Added setting for per page items

develop
Robin Thoni 8 years ago
parent
commit
6349c0fe41

+ 3
- 1
controllers/groups.controller.js View File

32
 
32
 
33
                 getEditController: function () {
33
                 getEditController: function () {
34
                     return "GroupEdit";
34
                     return "GroupEdit";
35
-                }
35
+                },
36
+
37
+                perPage: luticateAuthCache.getEffectiveSettingValue("LU_GROUPS_PER_PAGE")
36
             };
38
             };
37
         }]);
39
         }]);

+ 5
- 3
controllers/permissions.controller.js View File

1
 angular.module('luticate')
1
 angular.module('luticate')
2
-    .controller('PermissionsController', ['$scope', 'luticateAuthPermissions',
3
-        function($scope, luticateAuthPermissions) {
2
+    .controller('PermissionsController', ['$scope', 'luticateAuthPermissions', 'luticateAuthCache',
3
+        function($scope, luticateAuthPermissions, luticateAuthCache) {
4
 
4
 
5
             $scope.luTable = {
5
             $scope.luTable = {
6
                 columns: [
6
                 columns: [
42
 
42
 
43
                 getItemId: function (item) {
43
                 getItemId: function (item) {
44
                     return item.Name;
44
                     return item.Name;
45
-                }
45
+                },
46
+
47
+                perPage: luticateAuthCache.getEffectiveSettingValue("LU_PERMISSIONS_PER_PAGE")
46
             }
48
             }
47
     }]);
49
     }]);

+ 5
- 3
controllers/settings.controller.js View File

1
 angular.module('luticate')
1
 angular.module('luticate')
2
-    .controller('SettingsController', ['$scope', 'luticateAuthSettings',
3
-        function($scope, luticateAuthSettings) {
2
+    .controller('SettingsController', ['$scope', 'luticateAuthSettings', 'luticateAuthCache',
3
+        function($scope, luticateAuthSettings, luticateAuthCache) {
4
 
4
 
5
             $scope.luTable = {
5
             $scope.luTable = {
6
                 columns: [
6
                 columns: [
60
 
60
 
61
                 getItemId: function (item) {
61
                 getItemId: function (item) {
62
                     return item.Name;
62
                     return item.Name;
63
-                }
63
+                },
64
+
65
+                perPage: luticateAuthCache.getEffectiveSettingValue("LU_SETTINGS_PER_PAGE")
64
             }
66
             }
65
     }]);
67
     }]);

+ 5
- 3
controllers/users.controller.js View File

1
 angular.module('luticate')
1
 angular.module('luticate')
2
-    .controller('UsersController', ['$scope', 'luticateAuthUsers',
3
-        function($scope, luticateAuthUsers) {
2
+    .controller('UsersController', ['$scope', 'luticateAuthUsers', 'luticateAuthCache',
3
+        function($scope, luticateAuthUsers, luticateAuthCache) {
4
 
4
 
5
             $scope.luTable = {
5
             $scope.luTable = {
6
                 columns: [
6
                 columns: [
50
 
50
 
51
                 getEditController: function () {
51
                 getEditController: function () {
52
                     return "UserEdit";
52
                     return "UserEdit";
53
-                }
53
+                },
54
+
55
+                perPage: luticateAuthCache.getEffectiveSettingValue("LU_USERS_PER_PAGE")
54
             };
56
             };
55
     }]);
57
     }]);

Loading…
Cancel
Save