diff options
| author | benal01 <bja4245@rit.edu> | 2025-03-31 10:16:03 -0400 | 
|---|---|---|
| committer | benal01 <bja4245@rit.edu> | 2025-03-31 10:16:03 -0400 | 
| commit | d4dd348e81d3aef4cc62335f1dad5a02452dfadd (patch) | |
| tree | 19c8bc962cc605977c461306862394b9d2d705c6 /ufund-ui/src/app | |
| parent | bcdf234066ee277b7436428989d5e0dbf58c2f60 (diff) | |
| download | JellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.tar.gz JellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.tar.bz2 JellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.zip  | |
frontend model support for description
Diffstat (limited to 'ufund-ui/src/app')
| -rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 6 | ||||
| -rw-r--r-- | ufund-ui/src/app/models/Need.ts | 1 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index 85ffd17..feb39e0 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -91,7 +91,8 @@ export class CupboardComponent implements OnInit {              type: GoalType[form.type as keyof typeof GoalType],              urgent: form.urgent,              filterAttributes: [], -            current: 0 +            current: 0, +            description: form.description          };          this.cupboardService.updateNeed(need.id, need) @@ -127,7 +128,8 @@ export class CupboardComponent implements OnInit {              type: form.type,              urgent: form.urgent ? true : false,              filterAttributes: [], -            current: 0 +            current: 0, +            description: form.description          };          console.log("need:", need);          console.log("form submitted. creating need: ", need); diff --git a/ufund-ui/src/app/models/Need.ts b/ufund-ui/src/app/models/Need.ts index 1451cad..2a2800c 100644 --- a/ufund-ui/src/app/models/Need.ts +++ b/ufund-ui/src/app/models/Need.ts @@ -7,6 +7,7 @@ export interface Need {      maxGoal: number;      current: number;      urgent: boolean; +    description: string;  }  export enum GoalType {  | 
