Skip to content

Commit

Permalink
fix: use the correct copy for a macos host (#24292)
Browse files Browse the repository at this point in the history
> 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
  • Loading branch information
jahzielv authored Dec 2, 2024
1 parent 5ff6546 commit 2cdead2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/23621-unlock-text
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixes an issue with the copy for the activity generated by viewing a locked macOS host's PIN.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
};
Expand Down

0 comments on commit 2cdead2

Please sign in to comment.