Skip to content

Commit 7571bae

Browse files
michalberkyHejdaJakub
authored andcommitted
fix(lib): do not display bottom pagination in tables
* Removed div containing the bottom pagination in table-wrapper.component.html * Removed pageChangedBottom() function related only to this bottom paginator in table-wrapper.component.ts
1 parent 1d892d8 commit 7571bae

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

libs/perun/utils/src/lib/table-wrapper/table-wrapper.component.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,4 @@
1515
<div class="overflow-auto border-top table-height" #table>
1616
<ng-content></ng-content>
1717
</div>
18-
19-
<div class="d-flex justify-content-end align-items-center">
20-
<mat-paginator
21-
(page)="pageChangedBottom($event)"
22-
[length]="paginator.length"
23-
[pageIndex]="paginator.pageIndex"
24-
[pageSizeOptions]="paginator.pageSizeOptions"
25-
[pageSize]="paginator.pageSize">
26-
</mat-paginator>
27-
<perun-web-apps-table-options
28-
(exportDisplayedData)="exportDisplayedData.emit($event)"
29-
(exportAllData)="exportAllData.emit($event)"
30-
[allowExportAll]="allowExportAll"
31-
*ngIf="!hideExport"></perun-web-apps-table-options>
32-
</div>
3318
</div>

libs/perun/utils/src/lib/table-wrapper/table-wrapper.component.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,4 @@ export class TableWrapperComponent implements OnInit {
6262
}); // scroll to top of table on page changes
6363
}
6464
}
65-
66-
pageChangedBottom(event: PageEvent): void {
67-
this.paginator.pageSize = event.pageSize;
68-
this.paginator.pageIndex = event.pageIndex;
69-
this.paginator.page.emit(event);
70-
this.pageSize = event.pageSize;
71-
if (this.tableId) {
72-
this.tableConfigService.setTablePageSize(this.tableId, event.pageSize);
73-
}
74-
}
7565
}

0 commit comments

Comments
 (0)