Alerting: Remove export button in alert form when editing grafana-managed alert (#75153)

pull/75171/head
Sonia Aguilar 2 years ago committed by GitHub
parent 5aacdd9f49
commit b38454d81b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx

@ -251,7 +251,7 @@ export const AlertRuleForm = ({ existing, prefill }: Props) => {
</Button>
) : null}
{existing ? (
{existing && isCortexLokiOrRecordingRule(watch) && (
<Button
variant="secondary"
type="button"
@ -259,9 +259,9 @@ export const AlertRuleForm = ({ existing, prefill }: Props) => {
disabled={submitState.loading}
size="sm"
>
{isCortexLokiOrRecordingRule(watch) ? 'Edit YAML' : 'Export'}
Edit YAML
</Button>
) : null}
)}
</HorizontalGroup>
);

Loading…
Cancel
Save