From 89e687545eea2b41d07c30d6f9bd78b1895bb507 Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:31:02 -0800 Subject: [PATCH] =?UTF-8?q?UI=20=E2=80=93=20Specify=20rendering=20conditio?= =?UTF-8?q?n=20for=20host=20>=20software=20>=20munki=20card=20(#15921)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Addresses #15577 - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality Co-authored-by: Jacob Shandling --- changes/15577-conditionally-display-munki-card | 2 ++ .../pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changes/15577-conditionally-display-munki-card diff --git a/changes/15577-conditionally-display-munki-card b/changes/15577-conditionally-display-munki-card new file mode 100644 index 0000000000..1557ba8ed0 --- /dev/null +++ b/changes/15577-conditionally-display-munki-card @@ -0,0 +1,2 @@ +- Fix a bug where the host details > software > munki issues section was sometimes displayed when + Munki was not in use diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index 41338e53f0..87b731d0d6 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -760,7 +760,7 @@ const HostDetailsPage = ({ pathname={pathname} pathPrefix={PATHS.HOST_SOFTWARE(host?.id || 0)} /> - {host?.platform === "darwin" && macadmins && ( + {host?.platform === "darwin" && macadmins?.munki?.version && (