diff --git a/changes/23621-unlock-text b/changes/23621-unlock-text new file mode 100644 index 0000000000..6715062fdf --- /dev/null +++ b/changes/23621-unlock-text @@ -0,0 +1 @@ +- Fixes an issue with the copy for the activity generated by viewing a locked macOS host's PIN. \ No newline at end of file diff --git a/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx b/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx index 079f4463b7..6fa7cd0550 100644 --- a/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx +++ b/frontend/pages/hosts/details/cards/Activity/ActivityItems/UnlockedHostActivityItem/UnlockedHostActivityItem.tsx @@ -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 ( - {activity.actor_full_name} unlocked this host. + {activity.actor_full_name} {desc} ); };