diff options
author | benal01 <bja4245@rit.edu> | 2025-03-29 14:37:57 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-29 14:37:57 -0400 |
commit | 61b5b762b150c82e7d48190bcfe3416bfea96059 (patch) | |
tree | 1888d1036f5d82db32ba01f3566fd708dfc6fa02 /ufund-ui/src/app/components/cupboard/cupboard.component.ts | |
parent | 9e011d85fd307768f7cec7214ca873208574ecfb (diff) | |
download | JellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.tar.gz JellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.tar.bz2 JellySolutions-61b5b762b150c82e7d48190bcfe3416bfea96059.zip |
frontend implementation of a needs' urgency and location
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index a8b9c14..540a058 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -32,9 +32,11 @@ export class CupboardComponent implements OnInit { selectedNeed: any = { name: '', + location:'', id: null, maxGoal: null, - type: '' + type: '', + urgent: false }; selectedNeedId: number | null = null; searchResults: any[] = []; @@ -79,9 +81,11 @@ export class CupboardComponent implements OnInit { console.log(form); const need: Need = { name: form.name, + location: form.location, id: this.selectedNeed.id, //system will control this maxGoal: form.maxGoal, type: GoalType[form.type as keyof typeof GoalType], + urgent: form.urgent, filterAttributes: [], current: 0 }; @@ -113,9 +117,11 @@ export class CupboardComponent implements OnInit { submit(form: any) { const need: Need = { name: form.name, + location: form.location, id: 0, maxGoal: form.maxGoal, type: form.type, + urgent: form.urgent, filterAttributes: [], current: 0 }; |