Skip to content

Commit

Permalink
changed maximum target message (#954)
Browse files Browse the repository at this point in the history
* changed maximum target message

* Update UploadData.js
  • Loading branch information
Bhavya-egov authored Jun 25, 2024
1 parent 8dbc883 commit c2c374b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
href="https://unpkg.com/@egovernments/[email protected]/dist/index.css"
/> -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].1/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].7/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ const UploadData = ({ formData, onSelect, ...props }) => {
if(error.keyword === "type" && error.message === "must be string"){
return `${t("HCM_DATA_AT_ROW")} ${index} ${t("HCM_IN_COLUMN")} ${instancePath} ${t("HCM_IS_INVALID")} at ${sheetName}`
}
if(error.keyword === "maximum"){
return `${t("HCM_DATA_AT_ROW")} ${index} ${t("HCM_IN_COLUMN")} ${instancePath} ${t("HCM_IS_MAXIMUM_VALUE")} at ${sheetName}`
}
let formattedError = `${t("HCM_IN_COLUMN")} '${instancePath}' ${error.message}`;
if (error.keyword === "enum" && error.params && error.params.allowedValues) {
formattedError += `${t("HCM_DATA_ALLOWED_VALUES_ARE")} ${error.params.allowedValues.join("/ ")}`;
Expand Down Expand Up @@ -1137,7 +1140,6 @@ const UploadData = ({ formData, onSelect, ...props }) => {
onClick={() => {
downloadTemplate(), setShowPopUp(false);
}}
title={t("HCM_CAMPAIGN_DOWNLOAD_TEMPLATE")}
/>,
]}
sortFooterChildren={true}
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].1/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].7/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down

0 comments on commit c2c374b

Please sign in to comment.