mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fleet UI: Fix host summary data styling bug (#17421)
This commit is contained in:
parent
dcaf2d0a4c
commit
6b73816548
3 changed files with 18 additions and 34 deletions
|
|
@ -24,7 +24,6 @@ import StatusIndicator from "components/StatusIndicator";
|
|||
import { COLORS } from "styles/var/colors";
|
||||
|
||||
import OSSettingsIndicator from "./OSSettingsIndicator";
|
||||
import HostSummaryIndicator from "./HostSummaryIndicator";
|
||||
import BootstrapPackageIndicator from "./BootstrapPackageIndicator/BootstrapPackageIndicator";
|
||||
|
||||
import {
|
||||
|
|
@ -369,21 +368,27 @@ const HostSummary = ({
|
|||
mdmName?.includes("Fleet") && // show if 1 - host is enrolled in Fleet MDM, and
|
||||
hostMdmProfiles &&
|
||||
hostMdmProfiles.length > 0 && ( // 2 - host has at least one setting (profile) enforced
|
||||
<HostSummaryIndicator title="OS settings">
|
||||
<OSSettingsIndicator
|
||||
profiles={hostMdmProfiles}
|
||||
onClick={toggleOSSettingsModal}
|
||||
/>
|
||||
</HostSummaryIndicator>
|
||||
<DataSet
|
||||
title="OS settings"
|
||||
value={
|
||||
<OSSettingsIndicator
|
||||
profiles={hostMdmProfiles}
|
||||
onClick={toggleOSSettingsModal}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
{bootstrapPackageData?.status && (
|
||||
<HostSummaryIndicator title="Bootstrap package">
|
||||
<BootstrapPackageIndicator
|
||||
status={bootstrapPackageData.status}
|
||||
onClick={toggleBootstrapPackageModal}
|
||||
/>
|
||||
</HostSummaryIndicator>
|
||||
<DataSet
|
||||
title="Bootstrap package"
|
||||
value={
|
||||
<BootstrapPackageIndicator
|
||||
status={bootstrapPackageData.status}
|
||||
onClick={toggleBootstrapPackageModal}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
{platform !== "chrome" && renderDiskSpaceSummary()}
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
import React from "react";
|
||||
|
||||
interface IHostSummaryIndicatorProps {
|
||||
title: string;
|
||||
children: JSX.Element;
|
||||
}
|
||||
|
||||
const HostSummaryIndicator = ({
|
||||
title,
|
||||
children,
|
||||
}: IHostSummaryIndicatorProps): JSX.Element => {
|
||||
return (
|
||||
<div className="info-flex__item info-flex__item--title">
|
||||
<span className="info-flex__header">{title}</span>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default HostSummaryIndicator;
|
||||
|
|
@ -1 +0,0 @@
|
|||
export { default } from "./HostSummaryIndicator";
|
||||
Loading…
Reference in a new issue