mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Chore: Remove angular dependency from data sources * Removes default export for time and template srvs Also uses @grafana/runtime versions of the interfaces where possible * Replace usage of internal templateSrv where possible * Use runtime templateSrv in a couple more places
16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
import { AnnotationTarget } from './types';
|
|
|
|
export class CloudMonitoringAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
annotation: any;
|
|
|
|
constructor() {
|
|
this.annotation.target = this.annotation.target || {};
|
|
this.onQueryChange = this.onQueryChange.bind(this);
|
|
}
|
|
|
|
onQueryChange(target: AnnotationTarget) {
|
|
Object.assign(this.annotation.target, target);
|
|
}
|
|
}
|