Annotation: Fix "Enabled" button disappear after Grafana v8.0.6 upgrade (#37454)

This commit is contained in:
Maria Alexandra 2021-08-03 09:42:13 +02:00 committed by GitHub
parent 312e78ff0b
commit f10c5020f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,6 +81,9 @@ export const AnnotationSettingsEdit: React.FC<Props> = ({ editIdx, dashboard })
<Field label="Data source">
<DataSourcePicker width={50} annotations current={annotation.datasource} onChange={onDataSourceChange} />
</Field>
<Field label="Enabled" description="When enabled the annotation query is issued every dashboard refresh">
<Checkbox name="enable" id="enable" value={annotation.enable} onChange={onChange} />
</Field>
<Field
label="Hidden"
description="Annotation queries can be toggled on or off at the top of the dashboard. With this option checked this toggle will be hidden."