From 8788f7d2d829212d36c502bece4ddf173d71268f Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Tue, 25 Oct 2022 16:52:11 +0200 Subject: [PATCH] Alerting: Always allow configuring AM configuration (#57522) --- .../admin/ExternalAlertmanagers.tsx | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/public/app/features/alerting/unified/components/admin/ExternalAlertmanagers.tsx b/public/app/features/alerting/unified/components/admin/ExternalAlertmanagers.tsx index d076aed7375..80080718c40 100644 --- a/public/app/features/alerting/unified/components/admin/ExternalAlertmanagers.tsx +++ b/public/app/features/alerting/unified/components/admin/ExternalAlertmanagers.tsx @@ -130,8 +130,6 @@ export const ExternalAlertmanagers = () => { }; const noAlertmanagers = externalAlertManagers?.length === 0; - const noDsAlertmanagers = externalDsAlertManagers?.length === 0; - const hasExternalAlertmanagers = !(noAlertmanagers && noDsAlertmanagers); return (
@@ -149,20 +147,18 @@ export const ExternalAlertmanagers = () => { inactive={alertmanagersChoice === AlertmanagerChoice.Internal} /> - {hasExternalAlertmanagers && ( -
- - onChangeAlertmanagerChoice(value!)} - /> - -
- )} +
+ + onChangeAlertmanagerChoice(value!)} + /> + +
Alertmanagers by URL