Skip to content

Commit

Permalink
Fixing the consistency of util bar in endpoints and policies pages. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
efreeti authored Jul 9, 2020
1 parent 33fd5cf commit 8574a92
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 8574a92

Please sign in to comment.