mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix injecting dependencies to graph legend directive
This commit is contained in:
@@ -3,7 +3,8 @@ import $ from 'jquery';
|
||||
import baron from 'baron';
|
||||
import coreModule from 'app/core/core_module';
|
||||
|
||||
coreModule.directive('graphLegend', (popoverSrv, $timeout) => {
|
||||
/** @ngInject */
|
||||
function graphLegendDirective(popoverSrv, $timeout) {
|
||||
return {
|
||||
link: (scope, elem) => {
|
||||
let firstRender = true;
|
||||
@@ -300,4 +301,6 @@ coreModule.directive('graphLegend', (popoverSrv, $timeout) => {
|
||||
}
|
||||
},
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
coreModule.directive('graphLegend', graphLegendDirective);
|
||||
|
||||
Reference in New Issue
Block a user