From 3c799b13e9d0b922895936b5f0ad3971b3330104 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Tue, 24 Jun 2025 13:43:18 +0200 Subject: [PATCH] Alerting: Move data source error button (#106998) --- .../app/features/alerting/unified/rule-list/RuleList.v2.tsx | 4 ++-- .../unified/rule-list/components/DataSourceSection.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/app/features/alerting/unified/rule-list/RuleList.v2.tsx b/public/app/features/alerting/unified/rule-list/RuleList.v2.tsx index b930b314051..02c0033c184 100644 --- a/public/app/features/alerting/unified/rule-list/RuleList.v2.tsx +++ b/public/app/features/alerting/unified/rule-list/RuleList.v2.tsx @@ -20,14 +20,14 @@ function RuleList() { const { viewMode, handleViewChange } = useListViewMode(); return ( - <> + {viewMode === 'list' ? ( ) : ( )} - + ); } diff --git a/public/app/features/alerting/unified/rule-list/components/DataSourceSection.tsx b/public/app/features/alerting/unified/rule-list/components/DataSourceSection.tsx index 1750b3c68dc..8416e3e3d84 100644 --- a/public/app/features/alerting/unified/rule-list/components/DataSourceSection.tsx +++ b/public/app/features/alerting/unified/rule-list/components/DataSourceSection.tsx @@ -74,6 +74,8 @@ export const DataSourceSection = ({ )} + + {Boolean(error) && ( )} - {configureLink && (