From a71d101f77c71d1e7292f6a0b6b8b6d980db8fa9 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 1 Mar 2019 13:10:36 +0300 Subject: [PATCH] problems: fix datasource selector, closes #692 --- src/panel-triggers/datasource-selector.directive.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/panel-triggers/datasource-selector.directive.js b/src/panel-triggers/datasource-selector.directive.js index e1eabd0..0d55483 100644 --- a/src/panel-triggers/datasource-selector.directive.js +++ b/src/panel-triggers/datasource-selector.directive.js @@ -2,7 +2,10 @@ import angular from 'angular'; import _ from 'lodash'; const template = ` - + `; @@ -35,6 +38,11 @@ class DatasourceSelectorCtrl { return {text: ds, value: ds, selected: _.includes(datasources, ds)}; }) }; + // Fix for Grafana 6.0 + // https://github.com/grafana/grafana/blob/v6.0.0/public/app/core/directives/value_select_dropdown.ts#L291 + this.dashboard = { + on: () => {} + }; } onChange(updatedOptions) {