added userstory dropdown

This commit is contained in:
Michael
2020-06-30 10:30:58 +02:00
parent 74418ff0dd
commit aa5c468262
2 changed files with 6 additions and 5 deletions

View File

@@ -22,9 +22,11 @@ export class TaskFormComponent implements OnInit {
@Input() public task: ScrumTask;
public editing: Boolean;
public userstoryId: string;
public userstories: any[];
public userstories: any[] = [];
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {}
constructor(private backendService: BackendService, private activeModalService: NgbActiveModal) {
this.getUserStories();
}
ngOnInit(): void {
if (this.task === null || this.task === undefined) {
@@ -35,7 +37,6 @@ export class TaskFormComponent implements OnInit {
}
document.getElementById('titleField').focus();
this.getRelatedStory();
this.getUserStories();
}
onSubmit() {