Fix showing of Loki query editor in Annotations (#33279)

This commit is contained in:
Ivana Huckova 2021-04-23 09:48:35 +02:00 committed by GitHub
parent 340942267c
commit 6034bf37c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,11 @@ import { LokiQuery } from './types';
*/ */
export class LokiAnnotationsQueryCtrl { export class LokiAnnotationsQueryCtrl {
static templateUrl = 'partials/annotations.editor.html'; static templateUrl = 'partials/annotations.editor.html';
annotation: any; declare annotation: any;
/** @ngInject */ /** @ngInject */
constructor() { constructor($scope: any) {
this.annotation = $scope.ctrl.annotation;
this.annotation.target = this.annotation.target || {}; this.annotation.target = this.annotation.target || {};
this.onQueryChange = this.onQueryChange.bind(this); this.onQueryChange = this.onQueryChange.bind(this);
} }