aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
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.');
-}