Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Jen Huang <its.jenetic@gmail.com>
  • Loading branch information
nchaulet and jen-huang authored Apr 22, 2020
1 parent d14705a commit 4284181
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const RowActions = React.memo<{ agent: Agent; onReassignClick: () => void; refre
<EuiContextMenuItem icon="inspect" href={`${DETAILS_URI}${agent.id}`} key="viewConfig">
<FormattedMessage
id="xpack.ingestManager.agentList.viewActionText"
defaultMessage="View Agent"
defaultMessage="View agent"
/>
</EuiContextMenuItem>,
<EuiContextMenuItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ export const AgentReassignConfigFlyout: React.FunctionComponent<Props> = ({ onCl
const successMessage = i18n.translate(
'xpack.ingestManager.agentReassignConfig.successSingleNotificationTitle',
{
defaultMessage: 'Successfully changed the configuration',
defaultMessage: 'Agent configuration reassigned',
}
);
notifications.toasts.addSuccess(successMessage);
onClose();
} catch (error) {
setIsSubmitting(false);
notifications.toasts.addError(error, {
title: 'Error',
title: 'Unable to reassign agent configuration',
});
}
}

return (
<EuiFlyout onClose={onClose} size="l" maxWidth={640}>
<EuiFlyoutHeader hasBorder aria-labelledby="FleetAgentEnrollmentFlyoutTitle">
<EuiFlyoutHeader hasBorder aria-labelledby="FleetAgentReassigmentFlyoutTitle">
<EuiTitle size="m">
<h2 id="FleetAgentReassigmentFlyoutTitle">
<FormattedMessage
Expand All @@ -94,7 +94,7 @@ export const AgentReassignConfigFlyout: React.FunctionComponent<Props> = ({ onCl
<EuiText size="s">
<FormattedMessage
id="xpack.ingestManager.agentReassignConfig.flyoutDescription"
defaultMessage="Choose a new agent configuration to assign the selected agent(s) to."
defaultMessage="Choose a new agent configuration to assign the selected agent to."
/>
</EuiText>
</EuiFlyoutHeader>
Expand Down

0 comments on commit 4284181

Please sign in to comment.