aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-page/need-page.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/need-page/need-page.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-page/need-page.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/need-page/need-page.component.ts b/ufund-ui/src/app/components/need-page/need-page.component.ts
index 17e330c..d4bd683 100644
--- a/ufund-ui/src/app/components/need-page/need-page.component.ts
+++ b/ufund-ui/src/app/components/need-page/need-page.component.ts
@@ -1,4 +1,4 @@
-import {Component, Input, OnInit} from '@angular/core';
+import {Component, Input, OnInit, ViewChild, TemplateRef} from '@angular/core';
import {GoalType, Need} from '../../models/Need';
import {ActivatedRoute, Router} from "@angular/router";
import {CupboardService} from "../../services/cupboard.service";
@@ -14,7 +14,9 @@ import {ModalService} from '../../services/modal.service';
templateUrl: './need-page.component.html',
styleUrl: './need-page.component.css'
})
+
export class NeedPageComponent implements OnInit {
+
constructor(
private route: ActivatedRoute,
private cupboardService: CupboardService,
@@ -26,6 +28,8 @@ export class NeedPageComponent implements OnInit {
) {}
@Input() need!: Need;
+ warned: boolean = false;
+
ngOnInit(): void {
const id = Number(this.route.snapshot.paramMap.get('id'));