Ajout du type d'issue dans les détails et la liste des issues

This commit is contained in:
Cédric OLIVIER
2026-05-22 18:40:19 +02:00
parent 26dfbae927
commit ecf55392fd
4 changed files with 42 additions and 16 deletions
@@ -27,6 +27,13 @@ export class IssueDetail {
'done',
];
protected readonly typeOptions: IssueEntity['type'][] = [
'Bug',
'Study',
'Story',
'Technical Story',
];
protected get dependencyIds(): number[] {
return this.issue.dependsOnIds;
}
@@ -45,6 +52,14 @@ export class IssueDetail {
this.issue.estimatedTime = value === null || value === undefined ? null : Number(value);
}
protected get issueTypeValue(): IssueEntity['type'] {
return this.issue.type;
}
protected set issueTypeValue(value: IssueEntity['type']) {
this.issue.type = value;
}
constructor() {
if (this.isEditing) {
this.issueBeforeEdit = this.cloneIssue(this.issue);
@@ -54,6 +69,7 @@ export class IssueDetail {
protected startEdit(): void {
this.issueBeforeEdit = this.cloneIssue(this.issue);
this.isEditing = true;
this.closeMoreMenu();
}
protected cancelEdit(): void {
@@ -119,6 +135,7 @@ export class IssueDetail {
if (isNewIssueRoute) {
return {
id: safeId,
type: 'Story',
assignee: '',
epic: '',
name: '',
@@ -137,6 +154,7 @@ export class IssueDetail {
return (
existingIssue ?? {
id: safeId,
type: 'Story',
assignee: '',
epic: '',
name: '',