diff --git a/public/app/features/panel/query_ctrl.ts b/public/app/features/panel/query_ctrl.ts index 016f675dd0f..66370595252 100644 --- a/public/app/features/panel/query_ctrl.ts +++ b/public/app/features/panel/query_ctrl.ts @@ -55,23 +55,3 @@ export class QueryCtrl { } } -// var directivesModule = angular.module('grafana.directives'); -// -// /** @ngInject */ -// function metricsQueryOptions(dynamicDirectiveSrv, datasourceSrv) { -// return dynamicDirectiveSrv.create({ -// watchPath: "ctrl.panel.datasource", -// directive: scope => { -// return datasourceSrv.get(scope.ctrl.panel.datasource).then(ds => { -// return System.import(ds.meta.module).then(dsModule => { -// return { -// name: 'metrics-query-options-' + ds.meta.id, -// fn: dsModule.metricsQueryOptions -// }; -// }); -// }); -// } -// }); -// } -// -// directivesModule.directive('metricsQueryOptions', metricsQueryOptions); diff --git a/public/app/plugins/panel/unknown/module.ts b/public/app/plugins/panel/unknown/module.ts index dad970047bf..d625485cb63 100644 --- a/public/app/plugins/panel/unknown/module.ts +++ b/public/app/plugins/panel/unknown/module.ts @@ -5,6 +5,7 @@ import {PanelCtrl} from '../../../features/panel/panel'; export class UnknownPanelCtrl extends PanelCtrl { static templateUrl = 'public/app/plugins/panel/unknown/module.html'; + /** @ngInject */ constructor($scope, $injector) { super($scope, $injector); }