Skip to content

Commit

Permalink
show correct action title
Browse files Browse the repository at this point in the history
review fixes
  • Loading branch information
ashokaditya committed Oct 18, 2021
1 parent bc80259 commit 74a8340
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ const useLogEntryUIProps = (
iconType = 'lockOpen';
username = logEntry.item.data.user.id;
avatarIconColor = theme.euiColorVis9_behindText;
failedActionEventTitle = i18.ACTIVITY_LOG.LogEntry.action.failedEndpointAction;
failedActionEventTitle = i18.ACTIVITY_LOG.LogEntry.action.failedEndpointReleaseAction;
if (logEntry.item.data.EndpointActions.data) {
const data = logEntry.item.data.EndpointActions.data;
if (data.command === 'isolate') {
iconType = 'lock';
failedActionEventTitle = i18.ACTIVITY_LOG.LogEntry.action.failedEndpointIsolateAction;
}
if (commentText) {
displayComment = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ export const ACTIVITY_LOG = {
defaultMessage: 'submitted request: Release host',
}
),
failedEndpointAction: i18n.translate(
failedEndpointReleaseAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.failedEndpointAction',
{
defaultMessage: 'failed to submit request: Release host',
}
),
failedEndpointIsolateAction: i18n.translate(
'xpack.securitySolution.endpointDetails.activityLog.logEntry.action.failedEndpointAction',
{
defaultMessage: 'failed to submit request: Isolate host',
}
),
},
response: {
isolationCompletedAndSuccessful: i18n.translate(
Expand Down

0 comments on commit 74a8340

Please sign in to comment.