From 1677a0ae29862f9fc5f9ddab42739bd22151d306 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Mon, 2 Dec 2024 12:24:28 -0500 Subject: [PATCH] Windows Migration: leave checkbox disabled if non premium (#24272) --- .../cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx index e7b5b814a4..27dbdddc15 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx +++ b/frontend/pages/admin/IntegrationsPage/cards/MdmSettings/WindowsMdmPage/WindowsMdmPage.tsx @@ -72,7 +72,7 @@ interface IWindowsMdmPageProps { } const WindowsMdmPage = ({ router }: IWindowsMdmPageProps) => { - const { config } = useContext(AppContext); + const { config, isPremiumTier } = useContext(AppContext); const [mdmOn, setMdmOn] = useState( config?.mdm?.windows_enabled_and_configured ?? false @@ -124,9 +124,12 @@ const WindowsMdmPage = ({ router }: IWindowsMdmPageProps) => { />

{descriptionText}

Automatically migrate hosts connected to another MDM solution