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,6 +32,8 @@ angular.module('luticate')
32 32
 
33 33
                 getEditController: function () {
34 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,6 +1,6 @@
1 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 5
             $scope.luTable = {
6 6
                 columns: [
@@ -42,6 +42,8 @@ angular.module('luticate')
42 42
 
43 43
                 getItemId: function (item) {
44 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,6 +1,6 @@
1 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 5
             $scope.luTable = {
6 6
                 columns: [
@@ -60,6 +60,8 @@ angular.module('luticate')
60 60
 
61 61
                 getItemId: function (item) {
62 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,6 +1,6 @@
1 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 5
             $scope.luTable = {
6 6
                 columns: [
@@ -50,6 +50,8 @@ angular.module('luticate')
50 50
 
51 51
                 getEditController: function () {
52 52
                     return "UserEdit";
53
-                }
53
+                },
54
+
55
+                perPage: luticateAuthCache.getEffectiveSettingValue("LU_USERS_PER_PAGE")
54 56
             };
55 57
     }]);

Loading…
Cancel
Save