mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
consistant UI for info banner on host details and my device page (#11027)
This commit is contained in:
parent
93dabd816b
commit
a4bc2931e9
2 changed files with 15 additions and 15 deletions
|
|
@ -334,7 +334,7 @@ const DeviceUserPage = ({
|
|||
isMdmUnenrolled &&
|
||||
globalConfig?.mdm.enabled_and_configured && (
|
||||
// Turn on MDM banner
|
||||
<InfoBanner color="yellow" cta={turnOnMdmButton} pageLevel>
|
||||
<InfoBanner color="yellow" cta={turnOnMdmButton}>
|
||||
Mobile device management (MDM) is off. MDM allows your
|
||||
organization to change settings and install software. This
|
||||
lets your organization keep your device up to date so you
|
||||
|
|
|
|||
|
|
@ -608,23 +608,23 @@ const HostDetailsPage = ({
|
|||
return (
|
||||
<MainContent className={baseClass}>
|
||||
<div className={`${baseClass}__wrapper`}>
|
||||
<div className={`${baseClass}__header-links`}>
|
||||
{host?.platform === "darwin" &&
|
||||
isMdmUnenrolled &&
|
||||
config?.mdm.enabled_and_configured && (
|
||||
<InfoBanner color="yellow" pageLevel>
|
||||
To change settings and install software, ask the end user to
|
||||
follow the <strong>Turn on MDM</strong> instructions on their{" "}
|
||||
<strong>My device</strong> page.
|
||||
</InfoBanner>
|
||||
)}
|
||||
{showDiskEncryptionUserActionRequired && (
|
||||
{host?.platform === "darwin" &&
|
||||
isMdmUnenrolled &&
|
||||
config?.mdm.enabled_and_configured && (
|
||||
<InfoBanner color="yellow">
|
||||
Disk encryption: Requires action from the end user. Ask the end
|
||||
user to follow <b>Disk encryption</b> instructions on their{" "}
|
||||
<b>My device</b> page.
|
||||
To change settings and install software, ask the end user to
|
||||
follow the <strong>Turn on MDM</strong> instructions on their{" "}
|
||||
<strong>My device</strong> page.
|
||||
</InfoBanner>
|
||||
)}
|
||||
{showDiskEncryptionUserActionRequired && (
|
||||
<InfoBanner color="yellow">
|
||||
Disk encryption: Requires action from the end user. Ask the end user
|
||||
to follow <b>Disk encryption</b> instructions on their{" "}
|
||||
<b>My device</b> page.
|
||||
</InfoBanner>
|
||||
)}
|
||||
<div className={`${baseClass}__header-links`}>
|
||||
<BackLink
|
||||
text="Back to all hosts"
|
||||
path={filteredHostsPath || PATHS.MANAGE_HOSTS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue