Annotations: Fix Datasource as template variable not available for annotations (#37506)

This commit is contained in:
Maria Alexandra 2021-08-03 19:54:49 +02:00 committed by GitHub
parent bfc8a5cf49
commit d48e65bf74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,13 @@ export const AnnotationSettingsEdit: React.FC<Props> = ({ editIdx, dashboard })
/>
</Field>
<Field label="Data source">
<DataSourcePicker width={50} annotations current={annotation.datasource} onChange={onDataSourceChange} />
<DataSourcePicker
width={50}
annotations
variables
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} />