annotations_query_ctrl.ts 433 B

12345678910111213141516
  1. export class StackdriverAnnotationsQueryCtrl {
  2. static templateUrl = 'partials/annotations.editor.html';
  3. annotation: any;
  4. templateSrv: any;
  5. /** @ngInject */
  6. constructor(templateSrv) {
  7. this.templateSrv = templateSrv;
  8. this.annotation.target = this.annotation.target || {};
  9. this.onQueryChange = this.onQueryChange.bind(this);
  10. }
  11. onQueryChange(target) {
  12. Object.assign(this.annotation.target, target);
  13. }
  14. }