Skip to content

Commit

Permalink
Update CCR auto follower copy (#57135)
Browse files Browse the repository at this point in the history
* Update CCR auto follower copy. "pattern" -> "replication"

* Update copy in test expectation

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
jloleysens and elasticmachine authored Feb 10, 2020
1 parent e0b7fff commit bdba16d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('<AutoFollowPatternList />', () => {
actions.clickAutoFollowPatternAt(0);
find('autoFollowPatternActionMenuButton').simulate('click');
expect(exists('autoFollowPatternDetail.closeFlyoutButton')).toBe(true);
expect(actions.getPatternsActionMenuItemText(0)).toEqual('Resume pattern');
expect(actions.getPatternsActionMenuItemText(0)).toEqual('Resume replication');
expect(actions.getPatternsActionMenuItemText(1)).toEqual('Edit pattern');
expect(actions.getPatternsActionMenuItemText(2)).toEqual('Delete pattern');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const AutoFollowPatternActionMenuUI: FunctionComponent<Props> = ({
? patterns[0].active
? {
name: i18n.translate('xpack.crossClusterReplication.pauseAutoFollowPatternsLabel', {
defaultMessage: 'Pause {total, plural, one {pattern} other {patterns}}',
defaultMessage: 'Pause {total, plural, one {replication} other {replications}}',
values: { total: patterns.length },
}),
icon: <EuiIcon type="pause" />,
Expand All @@ -79,7 +79,7 @@ const AutoFollowPatternActionMenuUI: FunctionComponent<Props> = ({
}
: {
name: i18n.translate('xpack.crossClusterReplication.resumeAutoFollowPatternsLabel', {
defaultMessage: 'Resume {total, plural, one {pattern} other {patterns}}',
defaultMessage: 'Resume {total, plural, one {replication} other {replications}}',
values: { total: patterns.length },
}),
icon: <EuiIcon type="play" />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ export class AutoFollowPatternTable extends PureComponent {
? i18n.translate(
'xpack.crossClusterReplication.autoFollowPatternList.table.actionPauseDescription',
{
defaultMessage: 'Pause auto-follow pattern',
defaultMessage: 'Pause replication',
}
)
: i18n.translate(
'xpack.crossClusterReplication.autoFollowPatternList.table.actionResumeDescription',
{
defaultMessage: 'Resume auto-follow pattern',
defaultMessage: 'Resume replication',
}
);

Expand Down

0 comments on commit bdba16d

Please sign in to comment.