diff options
Diffstat (limited to 'ufund-ui/src/app/components')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 8 | ||||
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 13 |
2 files changed, 6 insertions, 15 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index 6faea9b..d9a247d 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -1,11 +1,6 @@ <h1> Cupboard </h1> <div id="menu"> <button (click)="opencreate()">Create new Need</button> - <button (click)="opendestroy()">Delete all Needs</button> -</div> -<div id="destroy-form"> - <button (click)="destroy()">Really Really sure you want to delete all needs?</button> - <button (click)="back()">Close</button> </div> <div id="create-form"> <h1> Create a new need </h1> @@ -22,8 +17,9 @@ <input type="radio" name="type" value="PHYSICAL" ngModel> <label>Physical</label><br> <input type="submit" value="Submit"> - <button (click)="back()">Close</button> </form> + <button (click)="back()">Close</button> + </div> <hr> <app-need-list></app-need-list>
\ No newline at end of file diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index 213296d..2fccf18 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -41,15 +41,6 @@ export class CupboardComponent implements OnInit { this.showElement(document.getElementById('create-form')); } - opendestroy() { - this.close(); - this.showElement(document.getElementById('destroy-form')); - } - - destroy() { - - } - back() { this.close(); this.openmenu(); @@ -85,4 +76,8 @@ export class CupboardComponent implements OnInit { ); } + + destroy() { + + } }
\ No newline at end of file |