diff --git a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap
index d245fc7..b60da02 100644
--- a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap
+++ b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap
@@ -167,7 +167,11 @@ exports[`VehicleDetailsTab Render 1`] = `
diff --git a/src/components/Cars/Status/Details/index.jsx b/src/components/Cars/Status/Details/index.jsx
index 2ef5534..a62e88d 100644
--- a/src/components/Cars/Status/Details/index.jsx
+++ b/src/components/Cars/Status/Details/index.jsx
@@ -1,4 +1,4 @@
-import { Checkbox, FormControlLabel, Grid, Tooltip } from "@material-ui/core";
+import { Box, Checkbox, FormControlLabel, Grid, Tooltip } from "@material-ui/core";
import DeleteIcon from "@material-ui/icons/Delete";
import EditIcon from "@material-ui/icons/Edit";
import UploadIcon from '@mui/icons-material/Upload';
@@ -157,27 +157,37 @@ const MainForm = ({ vin }) => {
)}
-
-
-
- }
- />
-
- setShowUploadConfigModal(true)} >
-
-
-
-
+
+
+
+
+ }
+ />
+
+ setShowUploadConfigModal(true)} >
+
+
+
+
+
+ >
+
+
diff --git a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap
index 097c3b2..cfb8cf3 100644
--- a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap
+++ b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap
@@ -331,7 +331,11 @@ exports[`CarStatus Render 1`] = `
diff --git a/src/components/Certificates/Add/CreateForm.jsx b/src/components/Certificates/Add/CreateForm.jsx
index 387cddd..76c6052 100644
--- a/src/components/Certificates/Add/CreateForm.jsx
+++ b/src/components/Certificates/Add/CreateForm.jsx
@@ -21,13 +21,21 @@ const getCertTypeLabel = (certtype) => {
};
const getCertsTypes = (providers) => {
+ let CertsTypes = CertTypeData
+
if (providers.length === 0) return [];
if ((providers[0] === Providers.MAGNA) || (providers[0] === Providers.FISKER_QA)) {
- return CertTypeData.filter((item) => {
- return (item.label === CertTypes.TBOX);
+ CertsTypes = CertsTypes.filter((item) => {
+ return (item.value === CertTypes.TBOX);
})
}
- return CertTypeData;
+ if (process.env.REACT_APP_SHOW_AFTERSALES_EU_CERT_BUTTON === "0") {
+ CertsTypes = CertsTypes.filter((item) => {
+ return (item.value !== CertTypes.AftersalesEU);
+ })
+ }
+
+ return CertsTypes;
}
const CreateForm = ({ onCreate, busy }) => {
diff --git a/src/components/Layouts/SideMenu.jsx b/src/components/Layouts/SideMenu.jsx
index 408cb76..61139ae 100644
--- a/src/components/Layouts/SideMenu.jsx
+++ b/src/components/Layouts/SideMenu.jsx
@@ -64,11 +64,11 @@ const menuData = [
icon: ,
rolesPerProvider: Permissions.FiskerTools,
submenus: [
- {
+ ...process.env.REACT_APP_ENV !== "cec-euprd" ? [{
label: "Certificate",
to: "/tools/certificates/add",
rolesPerProvider: Permissions.FiskerMagnaCertificate,
- },
+ }] : [],
{
label: "Security.dll",
to: "/tools/security-dll",