Skip to content

Commit

Permalink
Remove alerts form from the settings page.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Oct 15, 2024
1 parent 6086756 commit 16b908a
Showing 1 changed file with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
EuiFlexItem,
EuiForm,
EuiSpacer,
EuiSwitch,
} from '@elastic/eui';
import { useDispatch, useSelector } from 'react-redux';
import { useKibana } from '@kbn/kibana-react-plugin/public';
Expand Down Expand Up @@ -81,50 +80,6 @@ export const AlertDefaultsForm = () => {

return (
<EuiForm>
<EuiSpacer size="m" />
<EuiDescribedFormGroup
title={
<h4>
<FormattedMessage
id="xpack.synthetics.settings.defaultConnectors"
defaultMessage="Default rules"
/>
</h4>
}
description={
<FormattedMessage
id="xpack.synthetics.settings.defaultConnectors.description"
defaultMessage="Default rules are automatically created. You can disable creation of default rules here."
/>
}
>
<EuiSpacer size="s" />
<EuiSwitch
label={i18n.translate('xpack.synthetics.ruleStatusDefaultsForm.euiSwitch.enabledLabel', {
defaultMessage: 'Status rule enabled',
})}
checked={formFields?.defaultStatusRuleEnabled ?? true}
onChange={() => {
setFormFields({
...formFields,
defaultStatusRuleEnabled: !(formFields.defaultStatusRuleEnabled ?? true),
});
}}
/>
<EuiSpacer size="m" />
<EuiSwitch
label={i18n.translate('xpack.synthetics.ruleTLSDefaultsForm.euiSwitch.enabledLabel', {
defaultMessage: 'TLS rule enabled',
})}
checked={formFields?.defaultTLSRuleEnabled ?? true}
onChange={() => {
setFormFields({
...formFields,
defaultTLSRuleEnabled: !(formFields.defaultTLSRuleEnabled ?? true),
});
}}
/>
</EuiDescribedFormGroup>
<EuiSpacer size="m" />
<EuiDescribedFormGroup
title={
Expand Down

0 comments on commit 16b908a

Please sign in to comment.