aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-04-07 13:37:01 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-07 13:37:01 -0400
commitd2858b59e495186d51eebd188f84534fe68fc420 (patch)
treeccc97403ea41f166dd0c93c94bf88257b2898386 /ufund-ui/src/app/components/need-list
parentb6bc0e5e9be234c58ad5d8554f6614d22e2738f8 (diff)
downloadJellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.tar.gz
JellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.tar.bz2
JellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.zip
Disable pagination in checkout
Diffstat (limited to 'ufund-ui/src/app/components/need-list')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.html8
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts1
2 files changed, 5 insertions, 4 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index 1410ce6..8a88f96 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -2,12 +2,12 @@
<div id="needList">
<div *ngFor="let need of visibleNeeds" class="needEntry">
<div [routerLink]="'/need/' + need.id" class="clickable">
-
+
<div class="split">
<div class="left">
<img *ngIf="need.image" alt="Need image" class="need-image" [src]="need.image"/>
</div>
-
+
<div class="middle">
<span class="needName">{{need.name}}</span>
<span class="needType">{{need.type}}</span>
@@ -25,14 +25,14 @@
<progress [value]="need.current" [max]="need.maxGoal"></progress>
</div>
</div>
-
+
<div *ngIf="actionArea" class="actionArea">
<ng-container [ngTemplateOutlet]="actionArea" [ngTemplateOutletContext]="{$implicit: need}"/>
</div>
</div>
</div>
-<div id="page-selector">
+<div *ngIf="itemsPerPage !== Infinity" id="page-selector">
<button [disabled]="!(currentPage !== 0)" (click)="firstPage()"><span class="icon">first_page</span></button>
<button [disabled]="!(currentPage > 0)" (click)="decrementPage()"><span class="icon">arrow_back_ios_new</span></button>
<span>Page {{currentPage + 1}} of {{totalPages}}</span>
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts
index 7ca0ae7..2fbf9d2 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.ts
+++ b/ufund-ui/src/app/components/need-list/need-list.component.ts
@@ -59,5 +59,6 @@ export class NeedListComponent implements OnChanges {
}
protected readonly GoalType = GoalType;
+ protected readonly Infinity = Infinity;
}