aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/cupboard')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.html8
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts6
2 files changed, 7 insertions, 7 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index 3ed06fb..c2d146b 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -1,6 +1,6 @@
<div>
<h1> Cupboard </h1>
- <app-need-list #needList></app-need-list>
+ <app-need-list [editF]="" #needList></app-need-list>
</div>
<div *ngIf="isManager()" >
<h2 > Admin View </h2>
@@ -23,7 +23,7 @@
<input type="submit" value="Submit">
</form>
<span *ngIf="statusText">{{statusText | async}}</span>
-
+
</div>
<div id="update-form" *ngIf="selectedForm === 'update'">
<h1> Update Need </h1>
@@ -41,8 +41,8 @@
<input type="submit" value="Submit">
</form>
<span *ngIf="statusText">{{statusText | async}}</span>
-
+
</div>
<hr>
-
+
</div>
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
index e38f8c0..cf9b95e 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, ViewChild } from '@angular/core';
+import {Component, Input, OnInit, ViewChild} from '@angular/core';
import { CupboardService } from '../../services/cupboard.service';
import { UsersService } from '../../services/users.service';
import { Need, GoalType } from '../../models/Need';
@@ -38,9 +38,9 @@ export class CupboardComponent implements OnInit {
};
selectedNeedId: number | null = null;
searchResults: any[] = [];
-
+
selectForm(name: string) {
- //get search results from the need list
+ //get search results from the need list
if (this.needList) {
this.searchResults = this.needList.searchResults;
}