forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
512 B
18 lines
512 B
import { AnnotationTarget } from './types';
|
|
|
|
export class CloudMonitoringAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
declare annotation: any;
|
|
|
|
/** @ngInject */
|
|
constructor($scope: any) {
|
|
this.annotation = $scope.ctrl.annotation || {};
|
|
this.annotation.target = $scope.ctrl.annotation.target || {};
|
|
|
|
this.onQueryChange = this.onQueryChange.bind(this);
|
|
}
|
|
|
|
onQueryChange(target: AnnotationTarget) {
|
|
Object.assign(this.annotation.target, target);
|
|
}
|
|
}
|
|
|