Skip to content

Commit

Permalink
setup master enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
NabeelAyubee committed Sep 12, 2024
1 parent 07be27a commit 5adc4bc
Show file tree
Hide file tree
Showing 8 changed files with 102 additions and 191 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,17 @@
margin-bottom: 0;
}
}
.action-bar-wrap{
.menu-wrap{
p{
.action-bar-wrap {
.menu-wrap {
p {
margin: 0 !important;
}
}
}
}
.digit-popup-wrapper.setupMasterPopUp.alert {
.digit-popup-alert-content{
.digit-popup-alert-heading {
color: #00703c;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const HRMSCard = () => {
let propsForSandbox = [
{
label: t("CONFIGURE_MASTER"),
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=HRMS`,
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=HRMS&key=about`,
isOutsideModule: true,
roles: role,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let propsForCSR = [
let propsForSandbox = [
{
label: t("CONFIGURE_MASTER"),
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=PGR`,
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=PGR&key=about`,
isOutsideModule : true,
roles: role
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,17 @@ export const UICustomizations = {
value?.split(".")?.[1]
}`}
>
{t(`SANDBOX_${value?.split(".")?.[0]}`)}
{t(Digit.Utils.workbench.getMDMSLabel(`SCHEMA_` + value?.split(".")?.[0]))}
{/* {t(`SANDBOX_${value?.split(".")?.[0]}`)} */}
</Link>
</span>
);
case "SANDBOX_MASTER_NAME":
return row?.code?.split(".")?.[1] ? t(`SANDBOX_${row?.code?.split(".")?.[1]}`) : t(`SANDBOX_${row?.code?.split(".")?.[0]}`);
// return row?.code?.split(".")?.[1] ? t(`SANDBOX_${row?.code?.split(".")?.[1]}`) : t(`SANDBOX_${row?.code?.split(".")?.[0]}`);
return t(Digit.Utils.workbench.getMDMSLabel(`SCHEMA_` + row?.code));

case "SANDBOX_MASTER_TYPE":
return t(`SANDBOX_${value}`);
return t(Digit.Utils.locale.getTransformedLocale(`SANDBOX_MASTERTYPE_${value}`));

case "SANDBOX_ACTIONS":
const handleRedirect = (value, type) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ApplicationHome = () => {
className="sandbox-module-card"
label={t(`SANDBOX_APPLICATION_MODULE_${item?.module}`)}
buttonLabel={t(`SANDBOX_VIEW`)}
onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=${item?.module}`)}
onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=${item?.module}&key=about`)}
// onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/module?module=${item?.module}`)}
/>
))}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { Header, InboxSearchComposer } from "@egovernments/digit-ui-react-components";
import { Button, PopUp, Toast } from "@egovernments/digit-ui-components";
import { Button, Toast } from "@egovernments/digit-ui-components";
import { useHistory, useLocation } from "react-router-dom";
import { moduleMasterConfig } from "./config/moduleMasterConfig";

Expand Down Expand Up @@ -63,38 +63,6 @@ const ModuleMasterTable = () => {
}}
></InboxSearchComposer>
</div>
{showPopUp && (
<PopUp
type={"default"}
className={"masterHandlerPopup"}
footerclassName={"masterHandlerPopUpFooter"}
heading={t("SANDBOX_SETUP_MASTER_MODAL_HEADER")}
children={[<div>{t("SANDBOX_SETUP_MASTER_MODAL_TEXT")}</div>]}
onOverlayClick={() => {}}
footerChildren={[
<Button
type={"button"}
size={"large"}
variation={"secondary"}
label={t("SANDBOX_MANNUAL_MASTER_LOAD")}
onClick={() => {
handleMasterData(true);
}}
/>,
<Button
type={"button"}
size={"large"}
variation={"primary"}
label={t("SANDBOX_DEFAULT_MASTER_LOAD")}
onClick={() => {
handleMasterData(false);
}}
/>,
]}
sortFooterChildren={true}
onClose={() => {}}
></PopUp>
)}
{showToast && (
<Toast
type={showToast?.isError ? "error" : "success"}
Expand Down
Loading

0 comments on commit 5adc4bc

Please sign in to comment.