From eb392b61497957d115b3004640ec08d641efcb00 Mon Sep 17 00:00:00 2001 From: Dan83 Date: Wed, 17 Dec 2025 15:47:38 +0100 Subject: [PATCH] Forms: Remove gf-form from DataSourceLoadError.tsx (#113021) * Forms: Remove gf-form from DataSourceLoadError.tsx * Forms: Remove gf-form from DataSourceLoadError.tsx --- eslint-suppressions.json | 5 --- .../components/DataSourceLoadError.tsx | 37 ++++++++++--------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/eslint-suppressions.json b/eslint-suppressions.json index cdbeabcc87b..dfa69ae64f4 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -2397,11 +2397,6 @@ "count": 1 } }, - "public/app/features/datasources/components/DataSourceLoadError.tsx": { - "no-restricted-syntax": { - "count": 1 - } - }, "public/app/features/datasources/components/DataSourcePluginState.tsx": { "no-restricted-syntax": { "count": 3 diff --git a/public/app/features/datasources/components/DataSourceLoadError.tsx b/public/app/features/datasources/components/DataSourceLoadError.tsx index 10dee3f85b6..ea6b393d0b3 100644 --- a/public/app/features/datasources/components/DataSourceLoadError.tsx +++ b/public/app/features/datasources/components/DataSourceLoadError.tsx @@ -1,5 +1,5 @@ import { t, Trans } from '@grafana/i18n'; -import { Button, EmptyState } from '@grafana/ui'; +import { Button, EmptyState, Stack } from '@grafana/ui'; import { DataSourceRights } from '../types'; @@ -19,24 +19,27 @@ export function DataSourceLoadError({ dataSourceRights, onDelete, notFound }: Pr return ( <> {readOnly && } + + + {notFound && ( + + )} + + + {canDelete && ( + + )} -
- {notFound && ( - - )} - {canDelete && ( - - )} - - -
+
+
); }