aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-31 10:16:03 -0400
committerbenal01 <bja4245@rit.edu>2025-03-31 10:16:03 -0400
commitd4dd348e81d3aef4cc62335f1dad5a02452dfadd (patch)
tree19c8bc962cc605977c461306862394b9d2d705c6 /ufund-ui/src
parentbcdf234066ee277b7436428989d5e0dbf58c2f60 (diff)
downloadJellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.tar.gz
JellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.tar.bz2
JellySolutions-d4dd348e81d3aef4cc62335f1dad5a02452dfadd.zip
frontend model support for description
Diffstat (limited to 'ufund-ui/src')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts6
-rw-r--r--ufund-ui/src/app/models/Need.ts1
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 {