From 088ed45c2ad637293be6daf08588f4eb8eb1c470 Mon Sep 17 00:00:00 2001 From: Madhavi Gayathri Date: Tue, 27 Aug 2024 21:12:52 +0530 Subject: [PATCH] Add design suggestions. --- .../pages/application-edit.tsx | 126 ++++++++---------- 1 file changed, 57 insertions(+), 69 deletions(-) diff --git a/features/admin.applications.v1/pages/application-edit.tsx b/features/admin.applications.v1/pages/application-edit.tsx index b0293ccec08..f2b07ae443c 100755 --- a/features/admin.applications.v1/pages/application-edit.tsx +++ b/features/admin.applications.v1/pages/application-edit.tsx @@ -629,85 +629,74 @@ const ApplicationEditPage: FunctionComponent = ( return ( - - - Change the customer-end applications accordingly to recieve the below updates. - - -
    - { - !applicationInboundConfig - .useClientIdAsSubClaimForAppTokens && ( -
  1. - + - + ) => { - - if ( values.get("useClientIdAsSubClaimForAppTokens") - .length > 0) { - setBannerSubmitDisabled(false); + value: "useClientIdAsSubClaimForAppTokens" + } + ] } + listen={ (values: Map) => { + + if ( values.get("useClientIdAsSubClaimForAppTokens") + .length > 0) { + setBannerSubmitDisabled(false); + } else { + if (values.get("omitUsernameInIntrospectionRespForAppTokens") + .length === 0) { + setBannerSubmitDisabled(true); } else { - if (values.get("omitUsernameInIntrospectionRespForAppTokens") - .length === 0) { - setBannerSubmitDisabled(true); - } else { - setBannerSubmitDisabled(false); - } + setBannerSubmitDisabled(false); } - setUseClientIdAsSubClaimForAppTokens( - !useClientIdAsSubClaimForAppTokens); - } } - /> - - { t("applications:forms.inboundOIDC.sections.legacyApplicationTokens." + setUseClientIdAsSubClaimForAppTokens( + !useClientIdAsSubClaimForAppTokens); + } + } + /> + + { t("applications:forms.inboundOIDC.sections.legacyApplicationTokens." + "fields.useClientIdAsSubClaimForAppTokens.hint") } - -
  2. - ) - } - { - (!applicationInboundConfig.omitUsernameInIntrospectionRespForAppTokens + + + ) + } + { + (!applicationInboundConfig.omitUsernameInIntrospectionRespForAppTokens && !applicationInboundConfig.useClientIdAsSubClaimForAppTokens) && (
+ }