aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-29 14:37:57 -0400
committerbenal01 <bja4245@rit.edu>2025-03-29 14:37:57 -0400
commit61b5b762b150c82e7d48190bcfe3416bfea96059 (patch)
tree1888d1036f5d82db32ba01f3566fd708dfc6fa02 /ufund-ui/src/app/components/need-list/need-list.component.ts
parent9e011d85fd307768f7cec7214ca873208574ecfb (diff)
downloadJellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.tar.gz
JellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.tar.bz2
JellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.zip
frontend implementation of a needs' urgency and location
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts12
1 files changed, 6 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 4359cfa..37a3775 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
@@ -1,5 +1,4 @@
-import {Component, input, Output, EventEmitter} from '@angular/core';
-import { NgForm } from '@angular/forms';
+import {Component , Output, EventEmitter} from '@angular/core';
import {Need} from '../../models/Need';
import {CupboardService} from '../../services/cupboard.service';
import { UsersService } from '../../services/users.service';
@@ -39,12 +38,13 @@ export class NeedListComponent {
searchResults: Need[] = [];
sortMode = 'Ascending'
- currentSortAlgo: sortAlgo = sortByGoal;
- sortSelection: string = 'sortByGoal';
+ currentSortAlgo: sortAlgo = sortByName;
+ sortSelection: string = 'sortByName';
SortingAlgoArrays: {func:sortAlgo,name:string, display:string[]}[] = [
- {func:sortByGoal,name:"sortByGoal", display:["Maximum Goal", "Minimum Goal"]},
- {func:sortByName,name:"sortByName", display:["Name", "Name (Descending)"]},
+ {func:sortByName,name:"sortByName", display:["Name (Alphabetical)", "Name (Reverse)"]},
+ {func:sortByGoal,name:"sortByGoal", display:["Largest Maximum Goal", "Smallest Maximum Goal"]},
+ {func:sortByName,name:"sortByPriority", display:["Highest Priority", "Lowest Priority"]},
];
@Output() currentNeed = new EventEmitter<Need>();