Added prio to task creation

This commit is contained in:
Nicolai Ort 2020-06-08 14:17:13 +02:00
parent e81cb51f05
commit 03dea1d87b

View File

@ -39,7 +39,7 @@ export class TaskFormComponent implements OnInit {
}); });
} }
else { else {
this.task = { title: this.title, content: this.content }; this.task = { title: this.title, content: this.content, priority: this.prio };
this.backendService.postTask(this.task).subscribe(response => { this.backendService.postTask(this.task).subscribe(response => {
if (response.status > 399) { if (response.status > 399) {
alert('Fehler'); alert('Fehler');