added userstory dropdown
This commit is contained in:
parent
74418ff0dd
commit
aa5c468262
@ -8,8 +8,8 @@
|
||||
<h6 class="modal-caption text-muted"> Gehört zu Story: <a href="#" id="userstoryTitle">{{this.userstoryId}}</a></h6>
|
||||
</tr>
|
||||
<select class="form-control custom-select mr-sm-2" id="prio" required name="prio"
|
||||
[(ngModel)]="task.priority" *ngFor="let userstory of userstories">
|
||||
<option value="low">{{userstory}}</option>
|
||||
[(ngModel)]="task.priority">
|
||||
<option *ngFor="let userstory of userstories" value="low">{{userstory.title}}</option>
|
||||
</select>
|
||||
</table>
|
||||
<button (click)="onClose()" type="button" class="close" aria-label="Close">
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user