Better userstory selector
This commit is contained in:
@@ -113,7 +113,18 @@ export class TaskFormComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
public getAllPriorities(): string[] {
|
||||
getAllPriorities(): string[] {
|
||||
return Object.values(Priority);
|
||||
}
|
||||
}
|
||||
|
||||
getUserstoryTitleById(id: number): string{
|
||||
if (!id) {
|
||||
return null;
|
||||
}
|
||||
var story = this.userstories.find((x) => x.id === id);
|
||||
if (!story) {
|
||||
return null;
|
||||
}
|
||||
return story.title;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user