From c28e3bbc9aa0d3f51971c500acb51d7d11cbc614 Mon Sep 17 00:00:00 2001 From: gillespi314 <73313222+gillespi314@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:58:27 -0500 Subject: [PATCH] Hide edit and delete label from observer (#2401) --- frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx index bc504e313e..04cd255e90 100644 --- a/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx +++ b/frontend/pages/hosts/ManageHostsPage/ManageHostsPage.tsx @@ -117,6 +117,7 @@ const ManageHostsPage = ({ isAnyTeamMaintainer, isTeamMaintainer, isOnGlobalTeam, + isOnlyObserver, isPremiumTier, currentTeam, setCurrentTeam, @@ -951,7 +952,7 @@ const ManageHostsPage = ({
{displayText} - {labelType !== "builtin" && ( + {labelType !== "builtin" && !isOnlyObserver && ( <>