Commit 9e4547f7 by Torkel Ödegaard

fixed cloudwatch issue

parent cb7ffb44
...@@ -2,21 +2,6 @@ import angular from 'angular'; ...@@ -2,21 +2,6 @@ import angular from 'angular';
import coreModule from 'app/core/core_module'; import coreModule from 'app/core/core_module';
import _ from 'lodash'; import _ from 'lodash';
export class CloudWatchQueryParameter {
constructor() {
return {
templateUrl: 'public/app/plugins/datasource/cloudwatch/partials/query.parameter.html',
controller: 'CloudWatchQueryParameterCtrl',
restrict: 'E',
scope: {
target: '=',
datasource: '=',
onChange: '&',
},
};
}
}
export class CloudWatchQueryParameterCtrl { export class CloudWatchQueryParameterCtrl {
/** @ngInject */ /** @ngInject */
constructor($scope, templateSrv, uiSegmentSrv, datasourceSrv, $q) { constructor($scope, templateSrv, uiSegmentSrv, datasourceSrv, $q) {
...@@ -240,5 +225,17 @@ export class CloudWatchQueryParameterCtrl { ...@@ -240,5 +225,17 @@ export class CloudWatchQueryParameterCtrl {
} }
} }
coreModule.directive('cloudwatchQueryParameter', CloudWatchQueryParameter); export function cloudWatchQueryParameter() {
coreModule.controller('CloudWatchQueryParameterCtrl', CloudWatchQueryParameterCtrl); return {
templateUrl: 'public/app/plugins/datasource/cloudwatch/partials/query.parameter.html',
controller: CloudWatchQueryParameterCtrl,
restrict: 'E',
scope: {
target: '=',
datasource: '=',
onChange: '&',
},
};
}
coreModule.directive('cloudwatchQueryParameter', cloudWatchQueryParameter);
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