mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Alerting: Remove export button in alert form when editing grafana-managed alert (#75153)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user