Skip to content

Commit

Permalink
display a message when end of log
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya committed Jun 17, 2021
1 parent 85e5add commit 697a3c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,6 @@ export const EndpointActivityLog = memo(
},
});
}
if (!isIntersecting) {
dispatch({
type: 'endpointDetailsActivityLogUpdatePaging',
payload: {
disabled: false,
page,
pageSize,
},
});
}
},
[activityLogLoaded, dispatch, isPagingDisabled, page, pageSize]
);
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 697a3c3

Please sign in to comment.