userstory dropdown only when creating task
This commit is contained in:
@@ -20,7 +20,8 @@ import { HttpResponse } from '@angular/common/http';
|
||||
})
|
||||
export class TaskFormComponent implements OnInit {
|
||||
@Input() public task: ScrumTask;
|
||||
public editing: Boolean;
|
||||
public editing: boolean;
|
||||
public creating: boolean;
|
||||
public userstoryId: string;
|
||||
public userstories: any[] = [];
|
||||
public allStatus: any[] = [];
|
||||
@@ -35,8 +36,11 @@ export class TaskFormComponent implements OnInit {
|
||||
if (this.task === null || this.task === undefined) {
|
||||
this.task = { title: '' };
|
||||
this.editing = false;
|
||||
} else {
|
||||
this.creating = false;
|
||||
} else if (this.task.userstoryid) {
|
||||
this.editing = true;
|
||||
} else {
|
||||
this.creating = true;
|
||||
}
|
||||
document.getElementById('titleField').focus();
|
||||
this.getRelatedStory();
|
||||
|
||||
Reference in New Issue
Block a user