mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
support dynamic host status tooltip based on platform (#16821)
relates to #10477 takes into account platform for the host device status tag tooltip. macOS shows a different tooltip then the other platforms. **macos:**  **non mac:**  - [x] Manual QA for all new/changed functionality
This commit is contained in:
parent
2e497c2277
commit
f31e73dbad
2 changed files with 4 additions and 4 deletions
|
|
@ -415,7 +415,7 @@ const HostSummary = ({
|
|||
backgroundColor={COLORS["tooltip-bg"]}
|
||||
>
|
||||
<span className={`${baseClass}__tooltip-text`}>
|
||||
{tag.generateTooltip()}
|
||||
{tag.generateTooltip(platform)}
|
||||
</span>
|
||||
</ReactTooltip>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { HostMdmDeviceStatusUIState } from "../../helpers";
|
|||
interface IDeviceStatusTag {
|
||||
title: string;
|
||||
tagType: "warning" | "error";
|
||||
generateTooltip: (platform?: string) => string;
|
||||
generateTooltip: (platform: string) => string;
|
||||
}
|
||||
|
||||
type HostMdmDeviceStatusUIStateNoUnlock = Exclude<
|
||||
|
|
@ -30,13 +30,13 @@ export const DEVICE_STATUS_TAGS: DeviceStatusTagConfig = {
|
|||
unlocking: {
|
||||
title: "UNLOCK PENDING",
|
||||
tagType: "warning",
|
||||
generateTooltip: () =>
|
||||
generateTooltip: (platform) =>
|
||||
"Host will unlock when it comes online. If the host is online, it will unlock the next time it checks in to Fleet.",
|
||||
},
|
||||
locking: {
|
||||
title: "LOCK PENDING",
|
||||
tagType: "warning",
|
||||
generateTooltip: () =>
|
||||
generateTooltip: (platform) =>
|
||||
"Host will lock when it comes online. If the host is online, it will lock the next time it checks in to Fleet.",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue