feat(transactions): add pagination support for user transactions
Some checks failed
Some checks failed
This commit is contained in:
parent
157e774e86
commit
35184807c0
11 changed files with 47 additions and 24 deletions
|
@ -8,7 +8,7 @@
|
|||
</button>
|
||||
<h2 class="modal-heading">Transaktionen</h2>
|
||||
<p class="py-2 text-text-secondary mb-4">Hier siehst du alle vergangenen Einzahlungen</p>
|
||||
@for (transaction of transactions$ | async; track null) {
|
||||
@for (transaction of (transactionData$ | async)?.transactions; track null) {
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<div>
|
||||
<p class="text-sm font-medium">{{ transaction.status }}</p>
|
||||
|
@ -25,11 +25,11 @@
|
|||
</div>
|
||||
</div>
|
||||
}
|
||||
<div class="inline inline-flex w-full">
|
||||
<div class="inline inline-flex w-full gap-2">
|
||||
<button type="button" (click)="back()" class="button-primary w-full py-2" [disabled]="offset <= 0">
|
||||
<
|
||||
</button>
|
||||
<button type="button" (click)="forward()" class="button-primary w-full py-2">
|
||||
<button type="button" (click)="forward()" class="button-primary w-full py-2" [disabled]="!(transactionData$|async)?.hasMore">
|
||||
>
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue