Fleet UI: Fix formatting for mdm unenroll activity (#9476)

@gillespi314 

Authored by: gillespi314 <73313222+gillespi314@users.noreply.github.com>

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
This commit is contained in:
RachelElysia 2023-01-24 14:11:39 -05:00 committed by GitHub
parent c467aaad73
commit 0b2a511b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -61,5 +61,6 @@ export interface IActivityDetails {
email?: string;
role?: string;
host_serial?: string;
host_display_name?: string;
installed_from_dep?: boolean;
}

View file

@ -165,12 +165,10 @@ const TAGGED_TEMPLATES = {
mdmUnenrolled: (activity: IActivity) => {
return (
<>
An end user turned off MDM features for a host with serial number
<b>
{activity.details?.host_serial} (
{activity.details?.installed_from_dep ? "automatic" : "manual"})
</b>
.
{activity.actor_full_name
? " turned off mobile device management (MDM) for"
: "Mobile device management (MDM) was turned off for"}{" "}
<b>{activity.details?.host_display_name}</b>.
</>
);
},