From 9dc81228df1609e7104cc75f63a0e06f7185c722 Mon Sep 17 00:00:00 2001 From: Roberto Dip Date: Fri, 10 Feb 2023 18:17:12 -0300 Subject: [PATCH] add missing Fleet MDM banner on host details page (#9797) https://github.com/fleetdm/fleet/issues/9794 --- .../pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index 56887a2aaa..7ba96cf64a 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -654,12 +654,16 @@ const HostDetailsPage = ({ router.push(navPath); }; + const isMdmUnenrolled = + host?.mdm.enrollment_status === "Off" || !host?.mdm.enrollment_status; + return (
{host?.platform === "darwin" && - host?.mdm.enrollment_status === "Off" && ( + isMdmUnenrolled && + config?.mdm.enabled_and_configured && ( To change settings and install software, ask the end user to follow the Turn on MDM instructions on their{" "}