From fe77d039e698995f58ce66dd7d169217efd692b4 Mon Sep 17 00:00:00 2001 From: Virginia Cepeda Date: Tue, 25 Jul 2023 10:59:08 -0300 Subject: [PATCH] Alerting: Prevent showing View YAML button on new rules (#72278) --- .../components/rule-editor/AlertRuleForm.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx b/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx index b56373e3a30..e8715f33eb0 100644 --- a/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx +++ b/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx @@ -227,15 +227,17 @@ export const AlertRuleForm = ({ existing, prefill }: Props) => { ) : null} - + {existing ? ( + + ) : null} );