mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fleet UI: Updates to installed software tooltips (#21084)
This commit is contained in:
parent
ef07a406cc
commit
d8af8c638b
3 changed files with 12 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ const SoftwareName = ({ name }: ISoftwareNameProps) => {
|
|||
interface IStatusDisplayOption {
|
||||
displayName: string;
|
||||
iconName: "success" | "pending-outline" | "error";
|
||||
tooltip: string;
|
||||
tooltip: React.ReactNode;
|
||||
}
|
||||
|
||||
const STATUS_DISPLAY_OPTIONS: Record<
|
||||
|
|
@ -86,7 +86,12 @@ const STATUS_DISPLAY_OPTIONS: Record<
|
|||
installed: {
|
||||
displayName: "Installed",
|
||||
iconName: "success",
|
||||
tooltip: "Fleet installed software on these hosts.",
|
||||
tooltip: (
|
||||
<>
|
||||
Fleet installed software on these hosts. Currently, if the software is
|
||||
uninstalled, the "Installed" status won't be updated.
|
||||
</>
|
||||
),
|
||||
},
|
||||
pending: {
|
||||
displayName: "Pending",
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ export const INSTALL_STATUS_DISPLAY_OPTIONS: Record<
|
|||
displayText: "Installed",
|
||||
tooltip: ({ lastInstalledAt: lastInstall }) => (
|
||||
<>
|
||||
Fleet installed software on this host
|
||||
{dateAgo(lastInstall as string)}). Currently, if the software is
|
||||
deleted, the “Installed” status won’t be updated.
|
||||
Fleet installed software on this host {dateAgo(lastInstall as string)}).
|
||||
Currently, if the software is uninstalled, the "Installed"
|
||||
status won't be updated.
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ const STATUS_CONFIG: Record<SoftwareInstallStatus, IStatusDisplayConfig> = {
|
|||
tooltip: ({ lastInstalledAt }) => (
|
||||
<>
|
||||
Software installed successfully ({dateAgo(lastInstalledAt as string)}).
|
||||
Currently, if the software is uninstalled, the "Installed"
|
||||
status won't be updated.
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue