refs #2956. Added new param clientsPerPage
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/67/head
Manuel Aranda Rosales 2026-04-16 08:03:56 +02:00
parent 0dcaff990c
commit c25bd73bf1
2 changed files with 4 additions and 1 deletions

View File

@ -459,7 +459,7 @@
</section>
<div class="paginator-container">
<mat-paginator class="cards-paginator" [length]="length" [pageSize]="itemsPerPage" [pageIndex]="page"
[pageSizeOptions]="[5, 10, 20, 50, 100]" (page)="onPageChange($event)">
[pageSizeOptions]="pageSizeOptions" (page)="onPageChange($event)">
</mat-paginator>
</div>
</div>

View File

@ -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);
}
}