[v9.2.x] Alerting: Always allow configuring AM configuration (#57614)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-25 11:11:05 -04:00
committed by GitHub
co-authored by Gilles De Mey
parent b3a46212df
commit f58d6107e1
@@ -136,8 +136,6 @@ export const ExternalAlertmanagers = () => {
};
const noAlertmanagers = externalAlertManagers?.length === 0;
const noDsAlertmanagers = externalDsAlertManagers?.length === 0;
const hasExternalAlertmanagers = !(noAlertmanagers && noDsAlertmanagers);
return (
<div>
@@ -155,20 +153,18 @@ export const ExternalAlertmanagers = () => {
inactive={alertmanagersChoice === AlertmanagerChoice.Internal}
/>
{hasExternalAlertmanagers && (
<div className={styles.amChoice}>
<Field
label="Send alerts to"
description="Configures how the Grafana alert rule evaluation engine Alertmanager handles your alerts. Internal (Grafana built-in Alertmanager), External (All Alertmanagers configured above), or both."
>
<RadioButtonGroup
options={alertmanagerChoices}
value={alertmanagersChoice}
onChange={(value) => onChangeAlertmanagerChoice(value!)}
/>
</Field>
</div>
)}
<div className={styles.amChoice}>
<Field
label="Send alerts to"
description="Configures how the Grafana alert rule evaluation engine Alertmanager handles your alerts. Internal (Grafana built-in Alertmanager), External (All Alertmanagers configured above), or both."
>
<RadioButtonGroup
options={alertmanagerChoices}
value={alertmanagersChoice}
onChange={(value) => onChangeAlertmanagerChoice(value!)}
/>
</Field>
</div>
<h5>Alertmanagers by URL</h5>
<Alert severity="warning" title="Deprecation Notice">