diff --git a/public/pages/CreateDetector/components/ConfigureAlerts/components/AlertCondition/AlertConditionPanel.tsx b/public/pages/CreateDetector/components/ConfigureAlerts/components/AlertCondition/AlertConditionPanel.tsx index ae7c5ef45..79939763b 100644 --- a/public/pages/CreateDetector/components/ConfigureAlerts/components/AlertCondition/AlertConditionPanel.tsx +++ b/public/pages/CreateDetector/components/ConfigureAlerts/components/AlertCondition/AlertConditionPanel.tsx @@ -311,7 +311,7 @@ export default class AlertConditionPanel extends Component< error={getNameErrorMessage(name, nameIsInvalid, nameFieldTouched)} >

{isEdit - ? 'Edit alert triggers' - : createDetectorSteps[DetectorCreationStep.CONFIGURE_ALERTS].title + - ` (${triggers.length})`} + ? `Alert triggers (${triggers.length})` + : createDetectorSteps[DetectorCreationStep.CONFIGURE_ALERTS].title}

@@ -162,19 +161,15 @@ export default class ConfigureAlerts extends Component -

{alertCondition.name}

+

{isEdit ? alertCondition.name : 'Alert trigger'}

} paddingSize={'none'} initialIsOpen={true} extraAction={ - triggers.length > 1 ? ( - this.onDelete(index)}> - Remove alert trigger - - ) : ( - <> - ) + this.onDelete(index)}> + Remove + } > @@ -197,7 +192,7 @@ export default class ConfigureAlerts extends Component = MAX_ALERT_CONDITIONS} onClick={this.addCondition}> - {`Add ${triggers.length > 0 ? 'another' : 'an'} alert condition`} + {triggers.length > 0 ? 'Add another alert trigger' : 'Add alert triggers'} ); diff --git a/public/pages/CreateDetector/utils/constants.ts b/public/pages/CreateDetector/utils/constants.ts index e3d09b4c4..e06e5599a 100644 --- a/public/pages/CreateDetector/utils/constants.ts +++ b/public/pages/CreateDetector/utils/constants.ts @@ -16,7 +16,7 @@ export const createDetectorSteps: Record