display a message when end of log
fixes elastic/security-team/issues/1245
This commit is contained in:
parent
85e5add14e
commit
697a3c3bac
|
@ -66,16 +66,6 @@ export const EndpointActivityLog = memo(
|
|||
},
|
||||
});
|
||||
}
|
||||
if (!isIntersecting) {
|
||||
dispatch({
|
||||
type: 'endpointDetailsActivityLogUpdatePaging',
|
||||
payload: {
|
||||
disabled: false,
|
||||
page,
|
||||
pageSize,
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
[activityLogLoaded, dispatch, isPagingDisabled, page, pageSize]
|
||||
);
|
||||
|
@ -121,6 +111,12 @@ export const EndpointActivityLog = memo(
|
|||
<EuiFlexItem>
|
||||
{activityLogLoading && <EuiLoadingContent lines={3} />}
|
||||
{!activityLogLoading && !isPagingDisabled && <Sentinel ref={fetchMoreCallOut} />}
|
||||
{isPagingDisabled && (
|
||||
<p>
|
||||
<EuiText color="subdued" textAlign="center">
|
||||
{i18.ACTIVITY_LOG.LogEntry.endOfLog}
|
||||
</EuiText>
|
||||
</p>
|
||||
)}
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
|
|
@ -19,6 +19,12 @@ export const ACTIVITY_LOG = {
|
|||
defaultMessage: 'Show more activity log',
|
||||
}),
|
||||
LogEntry: {
|
||||
endOfLog: i18n.translate(
|
||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.endOfLog',
|
||||
{
|
||||
defaultMessage: 'Nothing more to show',
|
||||
}
|
||||
),
|
||||
action: {
|
||||
isolatedAction: i18n.translate(
|
||||
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.isolated',
|
||||
|
|
Loading…
Reference in a new issue