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:
Gabriel Hernandez 2025-09-25 15:46:07 +01:00 committed by GitHub
parent 1087ab3de6
commit d20ade7947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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