From a9967a2c0f53b32573c38998be3d592c37faddac Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 12 May 2023 09:35:50 -0700 Subject: [PATCH 1/2] CEC-3958 allow magna view cancel updates (#330) --- src/components/Controls/CarUpdatesTable/index.jsx | 2 +- src/components/Manifest/Status/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Controls/CarUpdatesTable/index.jsx b/src/components/Controls/CarUpdatesTable/index.jsx index d99fe94..1b21cf9 100644 --- a/src/components/Controls/CarUpdatesTable/index.jsx +++ b/src/components/Controls/CarUpdatesTable/index.jsx @@ -198,7 +198,7 @@ const MainForm = ({ vin, token }) => { sendCancel(row)}> diff --git a/src/components/Manifest/Status/index.jsx b/src/components/Manifest/Status/index.jsx index 28eb6de..b1c23cb 100644 --- a/src/components/Manifest/Status/index.jsx +++ b/src/components/Manifest/Status/index.jsx @@ -20,7 +20,7 @@ import { LocalDateTimeString } from "../../../utils/dates"; import { Permissions } from "../../../utils/roles"; import { CarUpdatesProvider, - useCarUpdatesContext, + useCarUpdatesContext } from "../../Contexts/CarUpdatesContext"; import { ManifestsProvider, @@ -179,7 +179,7 @@ const MainForm = () => { No action} > From e41bd97b6f8c865039ebf056ead927e56d967849 Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 12 May 2023 10:36:44 -0700 Subject: [PATCH 2/2] CEC-4325 magna edit car (#331) --- src/components/Cars/Status/Details/index.jsx | 2 +- src/components/Routes/SiteRoutes.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Cars/Status/Details/index.jsx b/src/components/Cars/Status/Details/index.jsx index ac34a8a..47b6baa 100644 --- a/src/components/Cars/Status/Details/index.jsx +++ b/src/components/Cars/Status/Details/index.jsx @@ -134,7 +134,7 @@ const MainForm = ({ vin }) => { diff --git a/src/components/Routes/SiteRoutes.jsx b/src/components/Routes/SiteRoutes.jsx index 96103ea..29052c2 100644 --- a/src/components/Routes/SiteRoutes.jsx +++ b/src/components/Routes/SiteRoutes.jsx @@ -248,7 +248,7 @@ const SiteRoutes = () => { type={TYPES.PROTECTED} token={token} groups={groups} - rolesPerGroup={Permissions.FiskerCreate} + rolesPerGroup={Permissions.FiskerMagnaCreate} providers={providers} />