diff --git a/src/app/task-form/task-form.component.ts b/src/app/task-form/task-form.component.ts index 602ef0c..7f2aa19 100644 --- a/src/app/task-form/task-form.component.ts +++ b/src/app/task-form/task-form.component.ts @@ -29,7 +29,11 @@ export class TaskFormComponent implements OnInit { if (this.task !== null && this.task !== undefined) { this.task.title = this.title; this.task.content = this.content; - this.backendService.putTask(this.task); + this.backendService.putTask(this.task).subscribe(response => { + if (response.status > 399) { + alert('Fehler'); + } + }); } else { this.task = { title: this.title, content: this.content };