added status title
This commit is contained in:
@@ -24,6 +24,7 @@ export class TaskFormComponent implements OnInit {
|
||||
public userstoryId: string;
|
||||
public userstories: any[] = [];
|
||||
public allStatus: any[] = [];
|
||||
public status: ScrumStatus;
|
||||
|
||||
constructor(
|
||||
private backendService: BackendService,
|
||||
@@ -95,6 +96,14 @@ export class TaskFormComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
createTaskStatus() {
|
||||
this.backendService.postStatus(this.status).subscribe((response) => {
|
||||
if (response.status > 399) {
|
||||
alert('Fehler');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// addNewStatus() {
|
||||
// this.allStatus;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user