try of readings status
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user