From f3ae7572e8329b41d62d39d56afc555c5415679c Mon Sep 17 00:00:00 2001 From: Bhavya-egov Date: Mon, 16 Dec 2024 11:35:01 +0530 Subject: [PATCH 1/2] changed template name --- .../modules/campaign-manager/src/components/UploadData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js index d9c5bbdb8f..103443eb72 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js @@ -1036,7 +1036,7 @@ const UploadData = ({ formData, onSelect, ...props }) => { if (fileData && fileData?.[0]?.url) { setDownloadError(false); if (fileData?.[0]?.id) { - downloadExcelWithCustomName({ fileStoreId: fileData?.[0]?.id, customName: fileData?.[0]?.filename }); + downloadExcelWithCustomName({ fileStoreId: fileData?.[0]?.id, customName: `${campaignName}_${fileData[0].filename}` }); setDownloadedTemplates((prev) => ({ ...prev, [type]: true, From 1fbf4f0815dc5c7c2e499c0e68ad20429d050cd2 Mon Sep 17 00:00:00 2001 From: Bhavya-egov Date: Mon, 16 Dec 2024 11:54:00 +0530 Subject: [PATCH 2/2] changed update flow name --- .../modules/campaign-manager/src/components/UploadData.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js index 103443eb72..85919bc2e2 100644 --- a/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/components/UploadData.js @@ -1036,7 +1036,8 @@ const UploadData = ({ formData, onSelect, ...props }) => { if (fileData && fileData?.[0]?.url) { setDownloadError(false); if (fileData?.[0]?.id) { - downloadExcelWithCustomName({ fileStoreId: fileData?.[0]?.id, customName: `${campaignName}_${fileData[0].filename}` }); + const customFileName = parentId ? `${campaignName}_${t("HCM_FILLED")}_${fileData[0].filename}` : `${campaignName}_${fileData[0].filename}`; + downloadExcelWithCustomName({ fileStoreId: fileData?.[0]?.id, customName: customFileName }); setDownloadedTemplates((prev) => ({ ...prev, [type]: true,