From 125200c566a4b3bf86fb1ec2b9682453c72210d4 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Wed, 7 May 2025 12:29:14 +0200 Subject: [PATCH] Remove double spinner (#105057) --- .../rule-editor/alert-rule-form/AlertRuleForm.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/alert-rule-form/AlertRuleForm.tsx b/public/app/features/alerting/unified/components/rule-editor/alert-rule-form/AlertRuleForm.tsx index 4a01b9364a5..9f86f091b06 100644 --- a/public/app/features/alerting/unified/components/rule-editor/alert-rule-form/AlertRuleForm.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/alert-rule-form/AlertRuleForm.tsx @@ -5,7 +5,7 @@ import { useParams } from 'react-router-dom-v5-compat'; import { GrafanaTheme2 } from '@grafana/data'; import { config, locationService } from '@grafana/runtime'; -import { Alert, Button, Spinner, Stack, useStyles2 } from '@grafana/ui'; +import { Alert, Button, Stack, useStyles2 } from '@grafana/ui'; import { useAppNotification } from 'app/core/copy/appNotification'; import { contextSrv } from 'app/core/core'; import { Trans, t } from 'app/core/internationalization'; @@ -279,7 +279,6 @@ export const AlertRuleForm = ({ existing, prefill, isManualRestore }: Props) => disabled={isSubmitting} icon={isSubmitting ? 'spinner' : undefined} > - {isSubmitting && } Save @@ -394,9 +393,6 @@ function storeInLocalStorageValues(values: RuleFormValues) { } const getStyles = (theme: GrafanaTheme2) => ({ - buttonSpinner: css({ - marginRight: theme.spacing(1), - }), form: css({ width: '100%', height: '100%', @@ -409,9 +405,4 @@ const getStyles = (theme: GrafanaTheme2) => ({ maxWidth: theme.breakpoints.values.xl, flex: 1, }), - flexRow: css({ - display: 'flex', - flexDirection: 'row', - justifyContent: 'flex-start', - }), });