mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
dont show add user button when idp already set up for host (#28089)
This commit is contained in:
parent
5ef16be93c
commit
453ddecf93
1 changed files with 5 additions and 1 deletions
|
|
@ -110,6 +110,7 @@ import AddEndUserModal from "../cards/User/components/AddEndUserModal";
|
|||
import {
|
||||
generateChromeProfilesValues,
|
||||
generateOtherEmailsValues,
|
||||
generateUsernameValues,
|
||||
} from "../cards/User/helpers";
|
||||
|
||||
const baseClass = "host-details";
|
||||
|
|
@ -949,7 +950,10 @@ const HostDetailsPage = ({
|
|||
className={defaultCardClass}
|
||||
platform={host.platform}
|
||||
endUsers={host.end_users ?? []}
|
||||
enableAddEndUser={isDarwinHost}
|
||||
enableAddEndUser={
|
||||
isDarwinHost &&
|
||||
generateUsernameValues(host.end_users ?? []).length !== 0
|
||||
}
|
||||
onAddEndUser={() => setShowAddEndUserModal(true)}
|
||||
/>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue