mirror of https://github.com/grafana/grafana
parent
fc829b32d9
commit
05dfccbb74
@ -1,25 +0,0 @@ |
||||
///<reference path="../../headers/common.d.ts" />
|
||||
|
||||
import angular from 'angular'; |
||||
|
||||
/** @ngInject */ |
||||
function annotationsQueryEditor(dynamicDirectiveSrv) { |
||||
return dynamicDirectiveSrv.create({ |
||||
scope: { |
||||
annotation: "=", |
||||
datasource: "=" |
||||
}, |
||||
watchPath: "annotation.datasource", |
||||
directive: scope => { |
||||
return System.import(scope.datasource.meta.module).then(function(dsModule) { |
||||
return { |
||||
name: 'annotation-query-editor-' + scope.datasource.meta.id, |
||||
fn: dsModule.annotationsQueryEditor, |
||||
}; |
||||
}); |
||||
}, |
||||
}); |
||||
} |
||||
|
||||
|
||||
angular.module('grafana.directives').directive('annotationsQueryEditor', annotationsQueryEditor); |
||||
@ -1,5 +1,4 @@ |
||||
define([ |
||||
'./list_ctrl', |
||||
'./edit_ctrl', |
||||
'./config_view', |
||||
], function () {}); |
||||
|
||||
@ -1,25 +0,0 @@ |
||||
///<reference path="../../headers/common.d.ts" />
|
||||
|
||||
import angular from 'angular'; |
||||
|
||||
/** @ngInject */ |
||||
function dsConfigView(dynamicDirectiveSrv) { |
||||
return dynamicDirectiveSrv.create({ |
||||
scope: { |
||||
dsMeta: "=", |
||||
current: "=" |
||||
}, |
||||
watchPath: "dsMeta.module", |
||||
directive: scope => { |
||||
return System.import(scope.dsMeta.module).then(function(dsModule) { |
||||
return { |
||||
name: 'ds-config-' + scope.dsMeta.id, |
||||
fn: dsModule.configView, |
||||
}; |
||||
}); |
||||
}, |
||||
}); |
||||
} |
||||
|
||||
|
||||
angular.module('grafana.directives').directive('dsConfigView', dsConfigView); |
||||
Loading…
Reference in new issue