From 52719b735649ab1424595db93e376719f8769fb5 Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Fri, 7 Dec 2018 14:27:20 -0500 Subject: [PATCH] Change 'Disenroll' text to be consistent with menu option 'Unenroll'. (#26816) --- .../public/components/table/table_type_configs.tsx | 2 +- .../beats_management/public/pages/main/beats.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx index 8e57de438e258..1ee969e03ae87 100644 --- a/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx +++ b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx @@ -178,7 +178,7 @@ export const BeatsTableType: TableType = { actions: [ { name: i18n.translate('xpack.beatsManagement.beatsTable.disenrollSelectedLabel', { - defaultMessage: 'Disenroll Selected', + defaultMessage: 'Unenroll Selected', }), action: 'delete', danger: true, diff --git a/x-pack/plugins/beats_management/public/pages/main/beats.tsx b/x-pack/plugins/beats_management/public/pages/main/beats.tsx index e5772765707cf..c6c24542b6e4c 100644 --- a/x-pack/plugins/beats_management/public/pages/main/beats.tsx +++ b/x-pack/plugins/beats_management/public/pages/main/beats.tsx @@ -190,7 +190,7 @@ class BeatsPageUi extends React.PureComponent { await this.props.libs.beats.update(beat.id, { active: false }); } - this.notifyBeatDisenrolled(selected); + this.notifyBeatUnenrolled(selected); // because the compile code above has a very minor race condition, we wait, // the max race condition time is really 10ms but doing 100 to be safe @@ -229,7 +229,7 @@ class BeatsPageUi extends React.PureComponent { } }; - private notifyBeatDisenrolled = async (beats: CMPopulatedBeat[]) => { + private notifyBeatUnenrolled = async (beats: CMPopulatedBeat[]) => { const { intl } = this.props; let title; let text; @@ -237,7 +237,7 @@ class BeatsPageUi extends React.PureComponent { title = intl.formatMessage( { id: 'xpack.beatsManagement.beats.beatDisenrolledNotificationTitle', - defaultMessage: '{firstBeatNameOrId} disenrolled', + defaultMessage: '{firstBeatNameOrId} unenrolled', }, { firstBeatNameOrId: `"${beats[0].name || beats[0].id}"`, @@ -246,7 +246,7 @@ class BeatsPageUi extends React.PureComponent { text = intl.formatMessage( { id: 'xpack.beatsManagement.beats.beatDisenrolledNotificationDescription', - defaultMessage: 'Beat with ID {firstBeatId} was disenrolled.', + defaultMessage: 'Beat with ID {firstBeatId} was unenrolled.', }, { firstBeatId: `"${beats[0].id}"`, @@ -256,7 +256,7 @@ class BeatsPageUi extends React.PureComponent { title = intl.formatMessage( { id: 'xpack.beatsManagement.beats.disenrolledBeatsNotificationTitle', - defaultMessage: '{beatsLength} beats disenrolled', + defaultMessage: '{beatsLength} beats unenrolled', }, { beatsLength: beats.length, @@ -267,7 +267,7 @@ class BeatsPageUi extends React.PureComponent { this.setState({ notifications: this.state.notifications.concat({ color: 'warning', - id: `disenroll_${new Date()}`, + id: `unenroll_${new Date()}`, title, text, }),