mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Host Details Page: No CTA for policies that have unknown status (#2841)
This commit is contained in:
parent
7911493d6b
commit
8196fd0117
1
changes/issue-2809-host-details-policy-unknown-no-cta
Normal file
1
changes/issue-2809-host-details-policy-unknown-no-cta
Normal file
@ -0,0 +1 @@
|
||||
* When a host's policy status is unknown, there is no CTA to filter hosts by unknown policy status
|
@ -95,21 +95,25 @@ const generatePolicyTableHeaders = (
|
||||
disableSortBy: true,
|
||||
Cell: (cellProps) => {
|
||||
return (
|
||||
<Link
|
||||
to={
|
||||
PATHS.MANAGE_HOSTS +
|
||||
TAGGED_TEMPLATES.hostsByPolicyRoute(
|
||||
cellProps.row.original.id,
|
||||
cellProps.row.original.response === "pass"
|
||||
? PolicyResponse.PASSING
|
||||
: PolicyResponse.FAILING
|
||||
)
|
||||
}
|
||||
className={`policy-link`}
|
||||
>
|
||||
View all hosts{" "}
|
||||
<img alt="link to hosts filtered by policy ID" src={Chevron} />
|
||||
</Link>
|
||||
<>
|
||||
{cellProps.row.original.response && (
|
||||
<Link
|
||||
to={
|
||||
PATHS.MANAGE_HOSTS +
|
||||
TAGGED_TEMPLATES.hostsByPolicyRoute(
|
||||
cellProps.row.original.id,
|
||||
cellProps.row.original.response === "pass"
|
||||
? PolicyResponse.PASSING
|
||||
: PolicyResponse.FAILING
|
||||
)
|
||||
}
|
||||
className={`policy-link`}
|
||||
>
|
||||
View all hosts{" "}
|
||||
<img alt="link to hosts filtered by policy ID" src={Chevron} />
|
||||
</Link>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
},
|
||||
},
|
||||
|
@ -434,6 +434,10 @@
|
||||
th:first-child {
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.response__header {
|
||||
border-right: none;
|
||||
}
|
||||
}
|
||||
|
||||
.section--software {
|
||||
|
Loading…
Reference in New Issue
Block a user