From 77bcc6d16d6548d6cb5d73c10f8d14433d601552 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Tue, 14 Nov 2023 12:37:30 +0530 Subject: [PATCH] (improvement) Move sign in step constants to the `application-mangement.ts` --- apps/console/src/extensions/configs/application.tsx | 4 ++-- .../applications/constants/application-management.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/console/src/extensions/configs/application.tsx b/apps/console/src/extensions/configs/application.tsx index 5fb85ae43a0..41a6a92dbe4 100644 --- a/apps/console/src/extensions/configs/application.tsx +++ b/apps/console/src/extensions/configs/application.tsx @@ -359,9 +359,9 @@ export const applicationConfig: ApplicationConfig = { tenantDomain: string ): number => { if (clientId === getTryItClientId(tenantDomain)) { - return 2; // For Asgardeo Try It App + return ApplicationManagementConstants.TRY_IT_SIGNIN_STEP; // For Asgardeo Try It App } else { - return 3; // For other applications + return ApplicationManagementConstants.APPLICATION_SIGNIN_STEP; // For other applications } }, getTabExtensions: ( diff --git a/apps/console/src/features/applications/constants/application-management.ts b/apps/console/src/features/applications/constants/application-management.ts index 7793308e5d3..8964d2dbe5d 100644 --- a/apps/console/src/features/applications/constants/application-management.ts +++ b/apps/console/src/features/applications/constants/application-management.ts @@ -461,6 +461,16 @@ export class ApplicationManagementConstants { * Application state param to be sent in the routing. */ public static readonly APPLICATION_STATE: string = "application"; + + /** + * Sign in step of the try it application. + */ + public static readonly TRY_IT_SIGNIN_STEP: number = 2; + + /** + * Sign in step of other applications. + */ + public static readonly APPLICATION_SIGNIN_STEP: number = 3; } export enum ShareWithOrgStatus {