Fixed the new button not working

This commit is contained in:
Nicolai Ort 2020-06-08 11:53:50 +02:00
parent 2fd5d89655
commit 92fb7b2e86

View File

@ -33,7 +33,11 @@ export class TaskFormComponent implements OnInit {
}
else {
this.task = { title: this.title, content: this.content };
this.backendService.postTask(this.task);
this.backendService.postTask(this.task).subscribe(response => {
if (response.status > 399) {
alert('Fehler');
}
});
}
this.submitted = true;
this.activeModalService.close();