Skip to content

Commit 1cb5f7f

Browse files
committed
Enhance getAllAvailableStates method: include optional icon property in state objects
1 parent 2942859 commit 1cb5f7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/management/lifecycle/lifecycle.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,14 @@ export class LifecycleService extends AbstractServiceSchema implements OnApplica
314314
* @returns An array containing all available lifecycle states
315315
*/
316316
public getAllAvailableStates(): Array<{ key: string; label: string; description: string }> {
317-
const allStates: Array<{ key: string; label: string; description: string }> = [];
317+
const allStates: Array<{ key: string; label: string; description: string, icon: string }> = [];
318318

319319
IdentityLifecycleDefaultList.forEach(state => {
320320
allStates.push({
321321
key: state.key,
322322
label: state.label,
323323
description: state.description,
324+
icon: state.icon,
324325
});
325326
});
326327

@@ -329,6 +330,7 @@ export class LifecycleService extends AbstractServiceSchema implements OnApplica
329330
key: customState.key,
330331
label: customState.label,
331332
description: customState.description,
333+
icon: customState.icon || 'mdi-help-rhombus-outline',
332334
});
333335
});
334336

0 commit comments

Comments
 (0)