fix: use the correct copy for a macos host (#24292)

> Related issue: #23621

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
This commit is contained in:
Jahziel Villasana-Espinoza 2024-12-02 17:30:18 -05:00 committed by GitHub
parent 5ff65462ca
commit 2cdead2dce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1 @@
- Fixes an issue with the copy for the activity generated by viewing a locked macOS host's PIN.

View file

@ -8,9 +8,13 @@ const baseClass = "unlocked-host-activity-item";
const UnlockedHostActivityItem = ({
activity,
}: IHostActivityItemComponentProps) => {
let desc = "unlocked this host.";
if (activity.details?.host_platform === "darwin") {
desc = "viewed the six-digit unlock PIN for this host.";
}
return (
<HostActivityItem className={baseClass} activity={activity}>
<b>{activity.actor_full_name}</b> unlocked this host.
<b>{activity.actor_full_name} </b> {desc}
</HostActivityItem>
);
};