aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts7
1 files changed, 6 insertions, 1 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 0f86921..e47929b 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
@@ -11,6 +11,7 @@ import { userType } from '../../models/User';
styleUrl: './need-list.component.css'
})
export class NeedListComponent {
+ selectedNeed: Need | undefined;
needs: Need[] = [];
searchResults: Need[] = [];
@@ -109,4 +110,8 @@ export class NeedListComponent {
back() {
this.searchResults = this.needs;
}
-}
+
+ select(need : Need) {
+ this.selectedNeed = need;
+ }
+} \ No newline at end of file