diff --git a/guacamole/src/main/webapp/app/groupList/directives/guacGroupList.js b/guacamole/src/main/webapp/app/groupList/directives/guacGroupList.js index d1190bab6..2bf75a89d 100644 --- a/guacamole/src/main/webapp/app/groupList/directives/guacGroupList.js +++ b/guacamole/src/main/webapp/app/groupList/directives/guacGroupList.js @@ -21,7 +21,8 @@ */ /** - * A directive which displays the contents of a connection group. + * A directive which displays the contents of a connection group within an + * automatically-paginated view. */ angular.module('groupList').directive('guacGroupList', [function guacGroupList() { @@ -75,7 +76,14 @@ angular.module('groupList').directive('guacGroupList', [function guacGroupList() * * @type Boolean */ - showRootGroup : '=' + showRootGroup : '=', + + /** + * The maximum number of connections or groups to show per page. + * + * @type Number + */ + pageSize : '=' }, diff --git a/guacamole/src/main/webapp/app/groupList/groupListModule.js b/guacamole/src/main/webapp/app/groupList/groupListModule.js index 99841eeea..084f3b931 100644 --- a/guacamole/src/main/webapp/app/groupList/groupListModule.js +++ b/guacamole/src/main/webapp/app/groupList/groupListModule.js @@ -24,4 +24,4 @@ * Module for displaying the contents of a connection group, allowing the user * to select individual connections or groups. */ -angular.module('groupList', ['rest']); +angular.module('groupList', ['pager', 'rest']); diff --git a/guacamole/src/main/webapp/app/groupList/templates/guacGroupList.html b/guacamole/src/main/webapp/app/groupList/templates/guacGroupList.html index 287804321..ae1ef679f 100644 --- a/guacamole/src/main/webapp/app/groupList/templates/guacGroupList.html +++ b/guacamole/src/main/webapp/app/groupList/templates/guacGroupList.html @@ -51,6 +51,13 @@ -
+ +