Fix pagination

Fix items on pages after the 1st resetting index to 1
This commit is contained in:
ksyasuda 2024-08-09 02:15:24 -07:00
parent 7462ccd612
commit 99558fec44
No known key found for this signature in database

View File

@ -169,7 +169,7 @@
<mat-card-content>
<ol class="mb-0 ml-1 pl-3">
<div *ngFor="let holding of (showAllTop ? positions.slice(pageIndexTop * pageSize, (pageIndexTop + 1) * pageSize) : positions | slice:0:5); track holding">
<li class="py-1">
<li class="py-1" value="{{pageSize * pageIndexTop + i + 1}}">
<a
class="d-flex"
[queryParams]="{
@ -233,8 +233,8 @@
</mat-card-header>
<mat-card-content>
<ol class="mb-0 ml-1 pl-3">
<div *ngFor="let holding of (showAllBottom ? positionsReversed.slice(pageIndexBottom * pageSize, (pageIndexBottom + 1) * pageSize) : positionsReversed | slice:0:5); track holding">
<li class="py-1">
<div *ngFor="let holding of (showAllBottom ? positionsReversed.slice(pageIndexBottom * pageSize, (pageIndexBottom + 1) * pageSize) : positionsReversed | slice:0:5); index as i">
<li class="py-1" value="{{pageSize * pageIndexBottom + i + 1}}">
<a
class="d-flex"
[queryParams]="{