Skip to content

Commit

Permalink
[Alerting] Updating wording on "Notify" dropdown (#86453)
Browse files Browse the repository at this point in the history
* Updating wording

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
ymao1 and kibanamachine authored Dec 21, 2020
1 parent d744eae commit 8d5dd1d
Showing 1 changed file with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ const DEFAULT_NOTIFY_WHEN_VALUE: AlertNotifyWhenType = 'onActionGroupChange';
const NOTIFY_WHEN_OPTIONS: Array<EuiSuperSelectOption<AlertNotifyWhenType>> = [
{
value: 'onActionGroupChange',
inputDisplay: 'Run only on status change',
inputDisplay: i18n.translate(
'xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onActionGroupChange.display',
{
defaultMessage: 'Only on status change.',
}
),
'data-test-subj': 'onActionGroupChange',
dropdownDisplay: (
<Fragment>
<strong>
<FormattedMessage
defaultMessage="Run only on status change"
defaultMessage="Only on status change"
id="xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onActionGroupChange.label"
/>
</strong>
Expand All @@ -52,13 +57,18 @@ const NOTIFY_WHEN_OPTIONS: Array<EuiSuperSelectOption<AlertNotifyWhenType>> = [
},
{
value: 'onActiveAlert',
inputDisplay: 'Run every time alert is active',
inputDisplay: i18n.translate(
'xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onActiveAlert.display',
{
defaultMessage: 'Every time alert is active',
}
),
'data-test-subj': 'onActiveAlert',
dropdownDisplay: (
<Fragment>
<strong>
<FormattedMessage
defaultMessage="Run every time alert is active"
defaultMessage="Every time alert is active"
id="xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onActiveAlert.label"
/>
</strong>
Expand All @@ -75,13 +85,18 @@ const NOTIFY_WHEN_OPTIONS: Array<EuiSuperSelectOption<AlertNotifyWhenType>> = [
},
{
value: 'onThrottleInterval',
inputDisplay: 'Set a custom action interval',
inputDisplay: i18n.translate(
'xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onThrottleInterval.display',
{
defaultMessage: 'On a custom action interval',
}
),
'data-test-subj': 'onThrottleInterval',
dropdownDisplay: (
<Fragment>
<strong>
<FormattedMessage
defaultMessage="Set a custom action interval"
defaultMessage="On a custom action interval"
id="xpack.triggersActionsUI.sections.alertForm.alertNotifyWhen.onThrottleInterval.label"
/>
</strong>
Expand Down Expand Up @@ -143,7 +158,7 @@ export const AlertNotifyWhen = ({
<>
<FormattedMessage
id="xpack.triggersActionsUI.sections.alertForm.renotifyFieldLabel"
defaultMessage="Notify every"
defaultMessage="Notify"
/>{' '}
<EuiIconTip
position="right"
Expand Down

0 comments on commit 8d5dd1d

Please sign in to comment.