From 42c3b707f642c7309a81423195e4dc61b833ccf1 Mon Sep 17 00:00:00 2001 From: ashish-egov Date: Sun, 17 Nov 2024 17:23:17 +0530 Subject: [PATCH] Go Back button and microplan name quotes fix --- .../microplan/src/components/ActivityCard.js | 2 +- .../pages/employee/FacilityCatchmentMapping.js | 17 +++++++++++------ .../microplan/src/pages/employee/PlanInbox.js | 2 +- .../microplan/src/pages/employee/PopInbox.js | 2 +- .../microplan/src/pages/employee/viewVillage.js | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/ActivityCard.js b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/ActivityCard.js index aa8b435fd07..d82dca100a9 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/ActivityCard.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/components/ActivityCard.js @@ -13,7 +13,7 @@ const ActivityHomeCard = ({onClickCard=()=>{},...props}) => {
{t(props.title)}
- {`"${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${props.microplanName || t("NO_NAME_AVAILABLE")}"`} + {`${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${props.microplanName || t("NO_NAME_AVAILABLE")}`}
diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/pages/employee/FacilityCatchmentMapping.js b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/pages/employee/FacilityCatchmentMapping.js index 3c63707bdbc..6a361769cdd 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/pages/employee/FacilityCatchmentMapping.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/microplan/src/pages/employee/FacilityCatchmentMapping.js @@ -81,16 +81,12 @@ const FacilityCatchmentMapping = () => { const { isLoading, data, isFetching, refetch } = Digit.Hooks.useCustomAPIHook(reqCriteriaResource); - - const { isLoading: isLoadingPlanObject, data: planObject, error: errorPlan, refetch: refetchPlan } = Digit.Hooks.microplanv1.useSearchPlanConfig( + const { isLoading: isLoadingPlanObject, data: planObject } = Digit.Hooks.microplanv1.useSearchPlanConfig( { PlanConfigurationSearchCriteria: { tenantId, id: url?.microplanId, }, - }, - { - enabled: isRootApprover && data?.TotalCount === 0, } ); @@ -160,7 +156,7 @@ const FacilityCatchmentMapping = () => {
{t("MICROPLAN_ASSIGN_CATCHMENT_VILLAGES")}
- {`"${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${planObject?.name || t("NO_NAME_AVAILABLE")}"`} + {`${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${planObject?.name || t("NO_NAME_AVAILABLE")}`}
{ style={{}} />} + {!isRootApprover && data?.TotalCount === 0 && planObject?.status === "CENSUS_DATA_APPROVED" && + history.push(`/${window.contextPath}/employee`)} type="button" variation="primary" />, + ]} + setactionFieldsToRight + sortActionFields + />} + {showPopup && currentRow && ( {
{t(`HCM_MICROPLAN_VALIDATE_AND_APPROVE_MICROPLAN_ESTIMATIONS`)}
- {`"${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${campaignObject?.campaignName || t("NO_NAME_AVAILABLE")}"`} + {`${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${campaignObject?.campaignName || t("NO_NAME_AVAILABLE")}`}
{
{t(`VALIDATE_APPROVE_POPULATIONDATA`)}
- {`"${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${planObject?.name || t("NO_NAME_AVAILABLE")}"`} + {`${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${planObject?.name || t("NO_NAME_AVAILABLE")}`}
{
{t(boundaryCode)}
- {`"${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${campaignObject?.campaignName || t("NO_NAME_AVAILABLE")}"`} + {`${t("HCM_MICROPLAN_MICROPLAN_NAME_LABEL")}: ${campaignObject?.campaignName || t("NO_NAME_AVAILABLE")}`}
{hierarchy.map((node, index) => (