add changes
This commit is contained in:
@@ -57,7 +57,7 @@ import { PaginationState } from '../../../core/services/pagination.service';
|
||||
@if (showPageSizeSelector()) {
|
||||
<mat-form-field class="page-size-selector" appearance="outline">
|
||||
<mat-select
|
||||
[value]="state()!.pageSize"
|
||||
[value]="state()!.itemsPerPage"
|
||||
(selectionChange)="onPageSizeChange($event.value)"
|
||||
aria-label="Items per page">
|
||||
@for (option of pageSizeOptions(); track option) {
|
||||
@@ -74,7 +74,7 @@ import { PaginationState } from '../../../core/services/pagination.service';
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onPageChange(1)"
|
||||
[disabled]="!state()!.hasPrev"
|
||||
[disabled]="!state()!.hasPreviousPage"
|
||||
matTooltip="First page"
|
||||
aria-label="Go to first page">
|
||||
<mat-icon>first_page</mat-icon>
|
||||
@@ -85,7 +85,7 @@ import { PaginationState } from '../../../core/services/pagination.service';
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onPageChange(state()!.currentPage - 1)"
|
||||
[disabled]="!state()!.hasPrev"
|
||||
[disabled]="!state()!.hasPreviousPage"
|
||||
matTooltip="Previous page"
|
||||
aria-label="Go to previous page">
|
||||
<mat-icon>chevron_left</mat-icon>
|
||||
@@ -114,7 +114,7 @@ import { PaginationState } from '../../../core/services/pagination.service';
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onPageChange(state()!.currentPage + 1)"
|
||||
[disabled]="!state()!.hasNext"
|
||||
[disabled]="!state()!.hasNextPage"
|
||||
matTooltip="Next page"
|
||||
aria-label="Go to next page">
|
||||
<mat-icon>chevron_right</mat-icon>
|
||||
@@ -125,7 +125,7 @@ import { PaginationState } from '../../../core/services/pagination.service';
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onPageChange(state()!.totalPages)"
|
||||
[disabled]="!state()!.hasNext"
|
||||
[disabled]="!state()!.hasNextPage"
|
||||
matTooltip="Last page"
|
||||
aria-label="Go to last page">
|
||||
<mat-icon>last_page</mat-icon>
|
||||
|
||||
Reference in New Issue
Block a user