mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Hide edit and delete label from observer (#2401)
This commit is contained in:
parent
6717bd5d61
commit
c28e3bbc9a
1 changed files with 2 additions and 1 deletions
|
|
@ -117,6 +117,7 @@ const ManageHostsPage = ({
|
|||
isAnyTeamMaintainer,
|
||||
isTeamMaintainer,
|
||||
isOnGlobalTeam,
|
||||
isOnlyObserver,
|
||||
isPremiumTier,
|
||||
currentTeam,
|
||||
setCurrentTeam,
|
||||
|
|
@ -951,7 +952,7 @@ const ManageHostsPage = ({
|
|||
<div className={`${baseClass}__label-block`}>
|
||||
<div className="title">
|
||||
<span>{displayText}</span>
|
||||
{labelType !== "builtin" && (
|
||||
{labelType !== "builtin" && !isOnlyObserver && (
|
||||
<>
|
||||
<Button onClick={onEditLabelClick} variant={"text-icon"}>
|
||||
<img src={PencilIcon} alt="Edit label" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue