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

View File

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