diff --git a/pmp-reactjs-ui/src/pages/authenticationServices/ApiKeysList.js b/pmp-reactjs-ui/src/pages/authenticationServices/ApiKeysList.js index b742fd56f..4518fe5d6 100644 --- a/pmp-reactjs-ui/src/pages/authenticationServices/ApiKeysList.js +++ b/pmp-reactjs-ui/src/pages/authenticationServices/ApiKeysList.js @@ -170,17 +170,13 @@ function ApiKeysList() { {dataLoaded && ( <> {errorMsg && ( -
-
- -
-
+ )}
{apiKeysList.length > 0 ? - @@ -218,7 +214,7 @@ function ApiKeysList() {
{activeApiKey && - () @@ -273,15 +269,15 @@ function ApiKeysList() {
submenuRef.current[index] = el}> -

setViewApiKeyId(index === viewApiKeyId ? null : index)} className={`font-semibold mb-0.5 cursor-pointer text-[#1447B2]`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e,()=>setViewApiKeyId(index === viewApiKeyId ? null : index))}> +

setViewApiKeyId(index === viewApiKeyId ? null : index)} className={`font-semibold mb-0.5 cursor-pointer text-[#1447B2]`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e, () => setViewApiKeyId(index === viewApiKeyId ? null : index))}> ...

{viewApiKeyId === index && (
-

onClickView(apiKey)} className={`${isLoginLanguageRTL ? "pl-10" : "pr-10"} py-2 px-4 cursor-pointer text-[#3E3E3E] hover:bg-gray-100`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e,()=>onClickView(apiKey))}> +

onClickView(apiKey)} className={`${isLoginLanguageRTL ? "pl-10" : "pr-10"} py-2 px-4 cursor-pointer text-[#3E3E3E] hover:bg-gray-100`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e, () => onClickView(apiKey))}> {t('oidcClientsList.view')}


-

onClickDeactivate(apiKey)} className={`${isLoginLanguageRTL ? "pl-10" : "pr-10"} py-2 px-4 ${apiKey.status === "ACTIVE" ? 'text-crimson-red cursor-pointer' : 'text-[#A5A5A5] cursor-auto'} hover:bg-gray-100`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e,()=>onClickDeactivate(apiKey))}> +

onClickDeactivate(apiKey)} className={`${isLoginLanguageRTL ? "pl-10" : "pr-10"} py-2 px-4 ${apiKey.status === "ACTIVE" ? 'text-crimson-red cursor-pointer' : 'text-[#A5A5A5] cursor-auto'} hover:bg-gray-100`} tabIndex="0" onKeyPress={(e) => onPressEnterKey(e, () => onClickDeactivate(apiKey))}> {t('oidcClientsList.deActivate')}

{showDeactivatePopup && ( diff --git a/pmp-reactjs-ui/src/pages/authenticationServices/CreateOidcClient.js b/pmp-reactjs-ui/src/pages/authenticationServices/CreateOidcClient.js index 9f956829b..5ac62917a 100644 --- a/pmp-reactjs-ui/src/pages/authenticationServices/CreateOidcClient.js +++ b/pmp-reactjs-ui/src/pages/authenticationServices/CreateOidcClient.js @@ -375,11 +375,7 @@ function CreateOidcClient() { {dataLoaded && ( <> {errorMsg && ( -
-
- -
-
+ )}
diff --git a/pmp-reactjs-ui/src/pages/authenticationServices/EditOidcClient.js b/pmp-reactjs-ui/src/pages/authenticationServices/EditOidcClient.js index a6f08fb27..bbd1ce972 100644 --- a/pmp-reactjs-ui/src/pages/authenticationServices/EditOidcClient.js +++ b/pmp-reactjs-ui/src/pages/authenticationServices/EditOidcClient.js @@ -265,11 +265,7 @@ function EditOidcClient() { {dataLoaded && ( <> {errorMsg && ( -
-
- -
-
+ )}
diff --git a/pmp-reactjs-ui/src/pages/authenticationServices/GenerateApiKey.js b/pmp-reactjs-ui/src/pages/authenticationServices/GenerateApiKey.js index 8d7958dd6..b99613729 100644 --- a/pmp-reactjs-ui/src/pages/authenticationServices/GenerateApiKey.js +++ b/pmp-reactjs-ui/src/pages/authenticationServices/GenerateApiKey.js @@ -42,7 +42,7 @@ function GenerateApiKey() { const blocker = useBlocker( ({ currentLocation, nextLocation }) => { - if (isSubmitClicked || isCancelledClicked ||generateApiKeySuccess) { + if (isSubmitClicked || isCancelledClicked || generateApiKeySuccess) { setIsSubmitClicked(false); isCancelledClicked = false; return false; @@ -221,11 +221,7 @@ function GenerateApiKey() { {dataLoaded && ( <> {errorMsg && ( -
-
- -
-
+ )}
@@ -255,7 +251,7 @@ function GenerateApiKey() {