Torkel Ödegaard 10 лет назад
Родитель
Сommit
316e1aac67
2 измененных файлов с 1 добавлено и 20 удалено
  1. 0 20
      public/app/features/panel/query_ctrl.ts
  2. 1 0
      public/app/plugins/panel/unknown/module.ts

+ 0 - 20
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);

+ 1 - 0
public/app/plugins/panel/unknown/module.ts

@@ -5,6 +5,7 @@ import {PanelCtrl} from '../../../features/panel/panel';
 export class UnknownPanelCtrl extends PanelCtrl {
 export class UnknownPanelCtrl extends PanelCtrl {
   static templateUrl = 'public/app/plugins/panel/unknown/module.html';
   static templateUrl = 'public/app/plugins/panel/unknown/module.html';
 
 
+  /** @ngInject */
   constructor($scope, $injector) {
   constructor($scope, $injector) {
     super($scope, $injector);
     super($scope, $injector);
   }
   }