aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui
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
parentb6bc0e5e9be234c58ad5d8554f6614d22e2738f8 (diff)
downloadJellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.tar.gz
JellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.tar.bz2
JellySolutions-d2858b59e495186d51eebd188f84534fe68fc420.zip
Disable pagination in checkout
Diffstat (limited to 'ufund-ui')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.html2
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.ts1
-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
4 files changed, 7 insertions, 5 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
index 7158194..a5fec6f 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
@@ -8,7 +8,7 @@
<span class="icon">delete</span>Remove from Basket
</button>
</ng-template>
- <app-need-list [uid]="1" [actionArea]="NLActions" [needs]="(usersService.getBasket() | async)!"/>
+ <app-need-list [itemsPerPage]="Infinity" [uid]="1" [actionArea]="NLActions" [needs]="(usersService.getBasket() | async)!"/>
<br>
<div id="footer">
<button class="button2" title="checkout" (click)="checkout()">Checkout</button>
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
index 78ce958..3921ad2 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
@@ -77,4 +77,5 @@ export class FundingBasketComponent implements OnInit {
protected readonly of = of;
protected readonly userType = userType;
+ protected readonly Infinity = Infinity;
}
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;
}