Fixed the new button not working
This commit is contained in:
parent
2fd5d89655
commit
92fb7b2e86
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user