aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
authorGunther6070 <haydenhartman10@yahoo.com>2025-04-02 13:33:47 -0400
committerGunther6070 <haydenhartman10@yahoo.com>2025-04-02 13:33:47 -0400
commitf14d070155a6927d544a908545c648c402948fea (patch)
treef6f56af728b5d0d23f1f222962a9215bc852a080 /ufund-ui/src/app/components/need-list/need-list.component.ts
parent22df0d963e09520339dfa9c681caeaaec790df8e (diff)
parent2eb67f9481d858474e77af545e71f68b2cea7041 (diff)
downloadJellySolutions-f14d070155a6927d544a908545c648c402948fea.tar.gz
JellySolutions-f14d070155a6927d544a908545c648c402948fea.tar.bz2
JellySolutions-f14d070155a6927d544a908545c648c402948fea.zip
Merge remote-tracking branch 'origin/css' into css
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts19
1 files changed, 13 insertions, 6 deletions
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 cd3d9bd..06a612e 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
@@ -74,12 +74,22 @@ export class NeedListComponent {
decrementPage() {
this.currentPage--;
- this.updateVisibleNeeds();
+ this.updateVisibleNeeds();
}
incrementPage() {
this.currentPage++;
- this.updateVisibleNeeds();
+ this.updateVisibleNeeds();
+ }
+
+ lastPage() {
+ this.currentPage = this.totalPages - 1
+ this.updateVisibleNeeds()
+ }
+
+ firstPage() {
+ this.currentPage = 0
+ this.updateVisibleNeeds()
}
editNeedsPerPage(amount: number) {
@@ -135,7 +145,7 @@ export class NeedListComponent {
ngOnInit(): void {
this.refresh()
-
+
}
changeSortMode(form : any) {
@@ -269,7 +279,4 @@ export class NeedListComponent {
}
}
}
-function not(location: string) {
- throw new Error('Function not implemented.');
-}