mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
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:
parent
5ff65462ca
commit
2cdead2dce
2 changed files with 6 additions and 1 deletions
1
changes/23621-unlock-text
Normal file
1
changes/23621-unlock-text
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Fixes an issue with the copy for the activity generated by viewing a locked macOS host's PIN.
|
||||
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue