mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fleet UI: Unreleased bug separating card from details summary component (#29113)
This commit is contained in:
parent
71b19f11ac
commit
49ff65b859
2 changed files with 34 additions and 22 deletions
|
|
@ -164,17 +164,23 @@ const SoftwareOSDetailsPage = ({
|
|||
/>
|
||||
) : (
|
||||
<>
|
||||
<SoftwareDetailsSummary
|
||||
title={osVersionDetails.name}
|
||||
hosts={osVersionDetails.hosts_count}
|
||||
countsUpdatedAt={counts_updated_at}
|
||||
queryParams={{
|
||||
os_name: osVersionDetails.name_only,
|
||||
os_version: osVersionDetails.version,
|
||||
team_id: teamIdForApi,
|
||||
}}
|
||||
name={osVersionDetails.platform}
|
||||
/>
|
||||
<Card
|
||||
borderRadiusSize="xxlarge"
|
||||
includeShadow
|
||||
className={`${baseClass}__summary-section`}
|
||||
>
|
||||
<SoftwareDetailsSummary
|
||||
title={osVersionDetails.name}
|
||||
hosts={osVersionDetails.hosts_count}
|
||||
countsUpdatedAt={counts_updated_at}
|
||||
queryParams={{
|
||||
os_name: osVersionDetails.name_only,
|
||||
os_version: osVersionDetails.version,
|
||||
team_id: teamIdForApi,
|
||||
}}
|
||||
name={osVersionDetails.platform}
|
||||
/>
|
||||
</Card>
|
||||
<Card
|
||||
borderRadiusSize="xxlarge"
|
||||
includeShadow
|
||||
|
|
|
|||
|
|
@ -159,17 +159,23 @@ const SoftwareVersionDetailsPage = ({
|
|||
/>
|
||||
) : (
|
||||
<>
|
||||
<SoftwareDetailsSummary
|
||||
title={`${softwareVersion.name}, ${softwareVersion.version}`}
|
||||
type={formatSoftwareType(softwareVersion)}
|
||||
hosts={hostsCount ?? 0}
|
||||
queryParams={{
|
||||
software_version_id: softwareVersion.id,
|
||||
team_id: teamIdForApi,
|
||||
}}
|
||||
name={softwareVersion.name}
|
||||
source={softwareVersion.source}
|
||||
/>
|
||||
<Card
|
||||
borderRadiusSize="xxlarge"
|
||||
includeShadow
|
||||
className={`${baseClass}__summary-section`}
|
||||
>
|
||||
<SoftwareDetailsSummary
|
||||
title={`${softwareVersion.name}, ${softwareVersion.version}`}
|
||||
type={formatSoftwareType(softwareVersion)}
|
||||
hosts={hostsCount ?? 0}
|
||||
queryParams={{
|
||||
software_version_id: softwareVersion.id,
|
||||
team_id: teamIdForApi,
|
||||
}}
|
||||
name={softwareVersion.name}
|
||||
source={softwareVersion.source}
|
||||
/>
|
||||
</Card>
|
||||
<Card
|
||||
borderRadiusSize="xxlarge"
|
||||
includeShadow
|
||||
|
|
|
|||
Loading…
Reference in a new issue