Commit e6abc069 by Marcus Efraimsson

fix injecting dependencies to graph legend directive

parent 41018fc7
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment