Ajoute icone pour priorite + changement donnée envoyé
This commit is contained in:
@@ -171,7 +171,7 @@ export class IssueDetail {
|
||||
estimatedTime: null,
|
||||
dependsOnIds: [],
|
||||
comments: [],
|
||||
priority: 'Moyenne',
|
||||
priority: 'MOYENNE',
|
||||
status: 'draft',
|
||||
progress: 0,
|
||||
});
|
||||
@@ -213,6 +213,17 @@ export class IssueDetail {
|
||||
return this.getBadgeClass(this.issueTypeValue);
|
||||
}
|
||||
|
||||
protected priorityDisplay(priority: IssueEntity['priority']): { symbol: string; color: string; label: string } {
|
||||
const map: Record<IssueEntity['priority'], { symbol: string; color: string; label: string }> = {
|
||||
'TRES_HAUTE': { symbol: '↑↑', color: '#dc3545', label: 'Très haute' },
|
||||
'HAUTE': { symbol: '↑', color: '#fd7e14', label: 'Haute' },
|
||||
'MOYENNE': { symbol: '–', color: '#ffc107', label: 'Moyenne' },
|
||||
'BASSE': { symbol: '↓', color: '#0d6efd', label: 'Basse' },
|
||||
'TRES_FAIBLE':{ symbol: '↓↓', color: '#6c757d', label: 'Très faible'},
|
||||
};
|
||||
return map[priority] ?? { symbol: '?', color: '#6c757d', label: priority };
|
||||
}
|
||||
|
||||
protected getBadgeClass(type: IssueEntity['type']): string {
|
||||
const map: Record<IssueEntity['type'], string> = {
|
||||
Bug: 'text-bg-danger',
|
||||
@@ -290,7 +301,7 @@ export class IssueDetail {
|
||||
estimatedTime: null,
|
||||
dependsOnIds: [],
|
||||
comments: [],
|
||||
priority: 'Moyenne',
|
||||
priority: 'MOYENNE',
|
||||
status: 'draft',
|
||||
progress: 0,
|
||||
};
|
||||
@@ -311,7 +322,7 @@ export class IssueDetail {
|
||||
estimatedTime: null,
|
||||
dependsOnIds: [],
|
||||
comments: [],
|
||||
priority: 'Moyenne',
|
||||
priority: 'MOYENNE',
|
||||
status: 'draft',
|
||||
progress: 0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user