consistant UI for info banner on host details and my device page (#11027)

This commit is contained in:
Gabriel Hernandez 2023-04-06 20:41:11 +01:00 committed by GitHub
parent 93dabd816b
commit a4bc2931e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 15 deletions

View file

@ -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

View file

@ -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}