Skip to content

Commit 7024157

Browse files
committed
Refactor IdentityLifecycleState interface: separate definition from default list and ensure color property is included
1 parent 1cb5f7f commit 7024157

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/management/identities/_enums/lifecycle.enum.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,34 @@ export enum IdentityLifecycleDefault {
44
MANUAL = "M",
55
}
66

7-
export const IdentityLifecycleDefaultList: Array<{ key: string; label: string; description: string, icon: string }> = [
7+
export interface IdentityLifecycleState {
8+
key: string;
9+
label: string;
10+
description?: string;
11+
icon?: string;
12+
color?: string;
13+
}
14+
15+
export const IdentityLifecycleDefaultList: Array<IdentityLifecycleState> = [
816
{
917
key: IdentityLifecycleDefault.OFFICIAL,
1018
label: 'Officiel',
1119
description: 'supannRessourceEtat : {COMPTE} O SupannActif',
1220
icon: 'mdi-account-check',
21+
color: '#00FF00',
1322
},
1423
{
1524
key: IdentityLifecycleDefault.INACTIVE,
1625
label: 'Inactif',
1726
description: 'supannRessourceEtat : {COMPTE} I SupannInactif',
1827
icon: 'mdi-account-off',
28+
color: '#808080',
1929
},
2030
{
2131
key: IdentityLifecycleDefault.MANUAL,
2232
label: 'Manuel',
2333
description: 'supannRessourceEtat : {COMPTE} M SupannManuel',
2434
icon: 'mdi-account-cog',
35+
color: '#ff009dff',
2536
},
2637
];

0 commit comments

Comments
 (0)