fix injecting dependencies to graph legend directive

This commit is contained in:
Marcus Efraimsson
2018-10-22 19:22:59 +02:00
parent 41018fc788
commit e6abc0691e

View File

@@ -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);