diff --git a/ogWebconsole/src/app/components/groups/groups.component.html b/ogWebconsole/src/app/components/groups/groups.component.html index 0becf16..f5b47d9 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -459,7 +459,7 @@
+ [pageSizeOptions]="pageSizeOptions" (page)="onPageChange($event)">
diff --git a/ogWebconsole/src/app/components/groups/groups.component.ts b/ogWebconsole/src/app/components/groups/groups.component.ts index f761051..5334c38 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.ts @@ -152,6 +152,9 @@ export class GroupsComponent implements OnInit, OnDestroy { this.treeDataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener); this.currentView = this.auth.groupsView || 'list'; this.itemsPerPage = this.auth.clientsPerPage || 20; + if (!this.pageSizeOptions.includes(this.itemsPerPage)) { + this.pageSizeOptions = [...this.pageSizeOptions, this.itemsPerPage].sort((a, b) => a - b); + } }