diff --git a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysList.js b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysList.js index c7e0113b8..f2eafdf50 100644 --- a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysList.js +++ b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysList.js @@ -168,13 +168,13 @@ function AdminApiKeysList() { status: "De-Active" }); setDeactivateRequest(request); - setActionId(-1); setShowDeactivatePopup(true); document.body.style.overflow = "hidden"; } }; const closeDeactivatePopup = () => { + setActionId(-1); setShowDeactivatePopup(false); document.body.style.overflow = "auto"; }; @@ -183,7 +183,6 @@ function AdminApiKeysList() { if (deactivationResponse !== "") { setActionId(-1); setShowDeactivatePopup(false); - // Update the specific row in the state with the new status setApiKeysList((prevList) => prevList.map(apiKey => (apiKey.apiKeyLabel === selectedApiKey.apiKeyLabel && apiKey.policyId === selectedApiKey.policyId && apiKey.partnerId === selectedApiKey.partnerId) ? { ...apiKey, status: "deactivated" } : apiKey @@ -309,19 +308,19 @@ function AdminApiKeysList() {
{t("partnerList.deActivate")}
+ {showDeactivatePopup && ( +{t("partnerList.deActivate")}
+ {showDeactivatePopup && ( +{t("partnerList.view")}
@@ -389,21 +399,11 @@ function AdminDevicesList({ title, subTitle, isLinkedDevicesList }) {{t("partnerList.deActivate")}
{t("approveRejectPopup.approveReject")}
+ {showSbiApproveRejectPopUp && ( +{t("partnerList.view")}
@@ -361,21 +372,11 @@ function AdminSbiList() {{t("partnerList.deActivate")}
{t("approveRejectPopup.approveReject")}
+ {showFtmApproveRejectPopup && +{t("partnerList.view")}
@@ -332,21 +345,11 @@ function AdminFtmList() {{t("partnerList.deActivate")}
{t("partnerList.deActivate")}
+ {showDeactivatePopup && ( + < DeactivatePopup + onClickConfirm={(deactivationResponse) => onClickConfirmDeactivate(deactivationResponse, partner)} + closePopUp={closeDeactivatePopup} + popupData={{ ...partner, isDeactivatePartner: true }} + request={deactivateRequest} + headerMsg={t('deactivatePartner.headerMsg', { partnerId: partner.partnerId, organisationName: partner.orgName })} + descriptionMsg='deactivatePartner.description' + headerKeyName={partner.orgName} + /> + )} )} - {showDeactivatePopup && ( - < DeactivatePopup - onClickConfirm={(deactivationResponse) => onClickConfirmDeactivate(deactivationResponse, partner)} - closePopUp={closeDeactivatePopup} - popupData={{ ...partner, isDeactivatePartner: true }} - request={deactivateRequest} - headerMsg={t('deactivatePartner.headerMsg', { partnerId: partner.partnerId, organisationName: partner.orgName })} - descriptionMsg='deactivatePartner.description' - headerKeyName={partner.orgName} - /> - )} diff --git a/pmp-revamp-ui/src/pages/admin/policyManager/ClonePolicyPopup.js b/pmp-revamp-ui/src/pages/admin/policyManager/ClonePolicyPopup.js index 817fae17e..09b89597f 100644 --- a/pmp-revamp-ui/src/pages/admin/policyManager/ClonePolicyPopup.js +++ b/pmp-revamp-ui/src/pages/admin/policyManager/ClonePolicyPopup.js @@ -121,9 +121,9 @@ function ClonePolicyPopup ({policyDetails, closePopUp}) { } return ( -{t('clonePolicyPopup.description1')} - {policyDetails.policyName}, {t('clonePolicyPopup.description2')} + {policyDetails.policyName} {t('clonePolicyPopup.description2')}
{t("policiesList.publish")}
{t("partnerList.view")}
@@ -397,37 +403,30 @@ function PoliciesList({ policyType, createPolicyButtonName, createPolicy, subTit{t("policiesList.clone")}
{t("partnerList.deActivate")}
{t("partnerList.deActivate")}
{t("partnerPolicyMappingRequestList.view")}