Updated @digi/core
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<digi-button af-variation="tertiary">
|
||||
<digi-icon-edit style="--digi--ui--width--icon: 1.25rem;" slot="icon"></digi-icon-edit>
|
||||
<digi-icon-edit style="--digi--ui--width--icon: 1.25rem" slot="icon"></digi-icon-edit>
|
||||
</digi-button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -59,7 +59,7 @@
|
||||
</digi-table>
|
||||
|
||||
<digi-navigation-pagination
|
||||
*ngIf="employees.length > pagedEmployees.length"
|
||||
*ngIf="totalPages > 1"
|
||||
class="employees-list__pagination"
|
||||
[afTotalPages]="totalPages"
|
||||
[afCurrentResultStart]="currentResultStart"
|
||||
|
||||
@@ -26,7 +26,7 @@ export class EmployeesListComponent {
|
||||
}
|
||||
|
||||
get pagedEmployees(): Employee[] {
|
||||
return [...this.employees].slice(this.currentResultStart - 1, this.currentResultEnd - 1);
|
||||
return [...this.employees].slice(this.currentResultStart - 1, this.currentResultEnd);
|
||||
}
|
||||
|
||||
get currentResultStart(): number {
|
||||
@@ -34,7 +34,7 @@ export class EmployeesListComponent {
|
||||
}
|
||||
|
||||
get currentResultEnd(): number {
|
||||
return this.currentResultStart + this._employeesPerPage;
|
||||
return this.currentResultStart + this._employeesPerPage - 1;
|
||||
}
|
||||
|
||||
handleSort(key: keyof Employee): void {
|
||||
|
||||
Reference in New Issue
Block a user