mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
fix the actor for the resend config profile activity (#33356)
resolves #32686 a quick fix to the resend config profile activity to support not having the actor user name
This commit is contained in:
parent
1087ab3de6
commit
d20ade7947
1 changed files with 7 additions and 4 deletions
|
|
@ -1061,11 +1061,13 @@ const TAGGED_TEMPLATES = {
|
|||
},
|
||||
|
||||
resentConfigProfile: (activity: IActivity) => {
|
||||
const actor = activity.actor_full_name
|
||||
? activity.actor_full_name
|
||||
: "An end user";
|
||||
return (
|
||||
<>
|
||||
{" "}
|
||||
resent {activity.details?.profile_name} configuration profile to{" "}
|
||||
{activity.details?.host_display_name}.
|
||||
<b>{actor}</b> resent {activity.details?.profile_name} configuration
|
||||
profile to {activity.details?.host_display_name}.
|
||||
</>
|
||||
);
|
||||
},
|
||||
|
|
@ -1941,11 +1943,12 @@ const GlobalActivityItem = ({
|
|||
) : (
|
||||
DEFAULT_ACTOR_DISPLAY
|
||||
);
|
||||
// MdmEnrolled and MdmUnenroll activities have more complicated logic to
|
||||
// these activities have more complicated logic to
|
||||
// determine if we display the actor name so we will handle that in the
|
||||
// template function
|
||||
case ActivityType.MdmUnenrolled:
|
||||
case ActivityType.MdmEnrolled:
|
||||
case ActivityType.ResentConfigurationProfile:
|
||||
return null;
|
||||
default:
|
||||
return DEFAULT_ACTOR_DISPLAY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue