refs #2956. Added new param clientsPerPage
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
0dcaff990c
commit
c25bd73bf1
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue