-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {" "}
-
- {" "}
-
-
-
-
+
+
+
+
+
+
setSearchTerm(e.target.value)}
+ />
+ {hasMasterPermission && (
+
+ )}
-
-
-
+
+
diff --git a/src/pages/master/MasterTable.jsx b/src/pages/master/MasterTable.jsx
index a677588b..3f3297b5 100644
--- a/src/pages/master/MasterTable.jsx
+++ b/src/pages/master/MasterTable.jsx
@@ -9,7 +9,7 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
const selectedMaster = useSelector(
(store) => store.localVariables.selectedMaster
);
- const hiddenColumns = [
+ const hiddenColumns = [
"id",
"featurePermission",
"tenant",
@@ -27,7 +27,7 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
"maxFilesAllowed",
"maxSizeAllowedInMB",
"isValidationRequired",
- "documentCategory"
+ "documentCategory",
];
const safeData = Array.isArray(data) ? data : [];
@@ -71,11 +71,13 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
: col.label,
}));
- const handleSystemDefined = (message) =>{
- if(message){
- showToast(`The system-defined item ${selectedMaster} cannot be ${message}.`)
- }
+ const handleSystemDefined = (message) => {
+ if (message) {
+ showToast(
+ `The system-defined item ${selectedMaster} cannot be ${message}.`
+ );
}
+ };
return (
@@ -86,12 +88,18 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
|
- {selectedMaster === "Activity" ? "Activity" : "Name"} |
- {selectedMaster === "Activity"
- ? "Unit"
- : selectedMaster === "Document Type"
- ? "Content Type"
- : "Description"} |
+
+ {" "}
+ {selectedMaster === "Activity" ? "Activity" : "Name"}
+ |
+
+ {" "}
+ {selectedMaster === "Activity"
+ ? "Unit"
+ : selectedMaster === "Document Type"
+ ? "Content Type"
+ : "Description"}
+ |
Actions
|
@@ -126,28 +134,28 @@ const MasterTable = ({ data, columns, loading, handleModalData }) => {
))}
- {(selectedMaster === "Application Role" || selectedMaster === "Work Category") && item?.isSystem ? (
+ {(selectedMaster === "Application Role" ||
+ selectedMaster === "Work Category") &&
+ item?.isSystem ? (
<>
-
+
-
- >
+
+ >
) : (
<>
diff --git a/src/repositories/MastersRepository.jsx b/src/repositories/MastersRepository.jsx
index 84f56aeb..a853fdbe 100644
--- a/src/repositories/MastersRepository.jsx
+++ b/src/repositories/MastersRepository.jsx
@@ -61,7 +61,7 @@ export const MasterRespository = {
createContactCategory: (data) =>
api.post(`/api/master/contact-category`, data),
updateContactCategory: (id, data) =>
- api.put(`/api/master/contact-category/edit/${id}`, data),
+ api.post(`/api/master/contact-category/edit/${id}`, data),
getContactTag: () => api.get(`/api/master/contact-tags`),
createContactTag: (data) => api.post(`/api/master/contact-tag`, data),
diff --git a/src/router/AppRoutes.jsx b/src/router/AppRoutes.jsx
index b2a32e5c..c2d15a0f 100644
--- a/src/router/AppRoutes.jsx
+++ b/src/router/AppRoutes.jsx
@@ -47,7 +47,11 @@ import MainRegisterPage from "../pages/authentication/MainRegisterPage";
import MainForgetPage from "../pages/authentication/MainForgetPage";
import MainResetPasswordPage from "../pages/authentication/MainResetPasswordPage";
import TenantPage from "../pages/Tenant/TenantPage";
-
+import { Navigate } from "react-router-dom";
+import RootRedirect from "./RootRedirect";
+import CreateTenant from "../pages/Tenant/CreateTenant";
+import SuperTenantDetails from "../pages/Tenant/SuperTenantDetails";
+import SelfTenantDetails from "../pages/Tenant/SelfTenantDetails";
const router = createBrowserRouter(
[
{
@@ -91,6 +95,9 @@ const router = createBrowserRouter(
{ path: "/expenses", element: },
{ path: "/masters", element: },
{ path: "/tenants", element: },
+ { path: "/tenants/new-tenant", element: },
+ { path: "/tenant/:tenantId", element: },
+ { path: "/tenant/self", element: },
{ path: "/help/support", element: },
{ path: "/help/docs", element: },
{ path: "/help/connect", element: },
|