aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts4
1 files changed, 1 insertions, 3 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 bc3de42..cd3d9bd 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
@@ -190,6 +190,7 @@ export class NeedListComponent {
delete(id : number) {
this.cupboardService.deleteNeed(id).subscribe(() => {
+ this.toastService.sendToast(ToastType.INFO, "Need deleted.")
this.needs = this.needs.filter(n => n.id !== id)
})
this.refresh();
@@ -229,10 +230,7 @@ export class NeedListComponent {
} else {
this.toastService.sendToast(ToastType.ERROR, "This need is already in your basket!")
}
-
-
}
-
}
back() {