Skip to content

Commit

Permalink
Fixing the consistency of util bar in endpoints and policies pages. (e…
Browse files Browse the repository at this point in the history
…lastic#71133) (elastic#71305)

Co-authored-by: Bohdan Tsymbala <[email protected]>
  • Loading branch information
kevinlog and efreeti authored Jul 9, 2020
1 parent c723eff commit c72fff6
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
EuiConfirmModal,
EuiCallOut,
EuiButton,
EuiHorizontalRule,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
Expand Down Expand Up @@ -425,19 +426,19 @@ export const PolicyList = React.memo(() => {
/>
</EuiButton>
}
bodyHeader={
policyItems &&
policyItems.length > 0 && (
<EuiText color="subdued" data-test-subj="policyTotalCount">
>
{policyItems && policyItems.length > 0 && (
<>
<EuiText color="subdued" data-test-subj="policyTotalCount" size="xs">
<FormattedMessage
id="xpack.securitySolution.endpoint.policyList.viewTitleTotalCount"
defaultMessage="{totalItemCount, plural, one {# Policy} other {# Policies}}"
values={{ totalItemCount }}
/>
</EuiText>
)
}
>
<EuiHorizontalRule margin="xs" />
</>
)}
{useMemo(() => {
return (
<>
Expand Down

0 comments on commit c72fff6

Please sign in to comment.