Ajoute icone pour priorite + changement donnée envoyé
This commit is contained in:
@@ -52,6 +52,17 @@ export class Issues {
|
||||
return Math.round((done / children.length) * 100);
|
||||
}
|
||||
|
||||
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 typeBadgeClass(type: IssueEntity['type']): string {
|
||||
const map: Record<IssueEntity['type'], string> = {
|
||||
Bug: 'text-bg-danger',
|
||||
|
||||
Reference in New Issue
Block a user