try of readings status

This commit is contained in:
Michael
2020-06-30 10:46:19 +02:00
parent bd26dde79c
commit 7b51aaa444
2 changed files with 17 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ export class TaskFormComponent implements OnInit {
public editing: Boolean;
public userstoryId: string;
public userstories: any[] = [];
public allStatus: any[] = [];
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {
this.getUserStories();
@@ -79,4 +80,14 @@ export class TaskFormComponent implements OnInit {
}
});
}
getTaskStatus() {
this.backendService.getAllStatus().subscribe((response) => {
if (response.status > 399) {
alert('Fehler');
} else {
this.allStatus.push(...response.body);
}
});
}
}