Skip to content

Commit 985cded

Browse files
committed
update endpoint table with subset count
1 parent 1f5220b commit 985cded

File tree

1 file changed

+12
-12
lines changed
  • x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view

1 file changed

+12
-12
lines changed

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -635,20 +635,20 @@ export const EndpointList = () => {
635635
{hasListData && (
636636
<>
637637
<EuiText color="subdued" size="xs" data-test-subj="endpointListTableTotal">
638-
<FormattedMessage
639-
id="xpack.securitySolution.endpoint.list.totalCount"
640-
defaultMessage="{totalItemCount, plural, one {# Host} other {# Hosts}}"
641-
values={{ totalItemCount }}
642-
/>
643-
</EuiText>
644-
{totalItemCount > MAX_PAGINATED_ITEM && (pageIndex + 1) * pageSize >= MAX_PAGINATED_ITEM && (
645-
<EuiCallOut size="s" color="warning">
638+
{totalItemCount > MAX_PAGINATED_ITEM + 1 ? (
646639
<FormattedMessage
647-
id="xpack.securitySolution.endpoint.list.maxItem"
648-
defaultMessage="we are only showing the first 10k. Changeme."
640+
id="xpack.securitySolution.endpoint.list.totalCount"
641+
defaultMessage="Showing {limit} of {totalItemCount, plural, one {# Host} other {# Hosts}}"
642+
values={{ totalItemCount, limit: MAX_PAGINATED_ITEM + 1 }}
649643
/>
650-
</EuiCallOut>
651-
)}
644+
) : (
645+
<FormattedMessage
646+
id="xpack.securitySolution.endpoint.list.totalCount"
647+
defaultMessage="{totalItemCount, plural, one {# Host} other {# Hosts}}"
648+
values={{ totalItemCount }}
649+
/>
650+
)}
651+
</EuiText>
652652
<EuiHorizontalRule margin="xs" />
653653
</>
654654
)}

0 commit comments

Comments
 (0)