mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Annotations: Fix issue with annotation queries editors (#21712)
This commit is contained in:
parent
5e87af8b2a
commit
d9e1cb44c8
@ -126,10 +126,13 @@ function pluginDirectiveLoader(
|
||||
}
|
||||
// Annotations
|
||||
case 'annotations-query-ctrl': {
|
||||
const baseUrl = scope.ctrl.currentDatasource.meta.baseUrl;
|
||||
const pluginId = scope.ctrl.currentDatasource.meta.id;
|
||||
|
||||
return importDataSourcePlugin(scope.ctrl.currentDatasource.meta).then(dsPlugin => {
|
||||
return {
|
||||
baseUrl: scope.ctrl.currentDatasource.meta.baseUrl,
|
||||
name: 'annotations-query-ctrl-' + scope.ctrl.currentDatasource.meta.id,
|
||||
baseUrl,
|
||||
name: 'annotations-query-ctrl-' + pluginId,
|
||||
bindings: { annotation: '=', datasource: '=' },
|
||||
attrs: {
|
||||
annotation: 'ctrl.currentAnnotation',
|
||||
|
Loading…
Reference in New Issue
Block a user