From 2613ed85a6052d49157a905732e29ec18b94c377 Mon Sep 17 00:00:00 2001 From: Marcus Olsson Date: Tue, 21 Jul 2020 21:51:38 +0200 Subject: [PATCH] Docs: Fix inconsistencies in plugin guide for annotations (#26480) --- .../developers/plugins/add-support-for-annotations.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sources/developers/plugins/add-support-for-annotations.md b/docs/sources/developers/plugins/add-support-for-annotations.md index ff32752798d..49d01f30af9 100644 --- a/docs/sources/developers/plugins/add-support-for-annotations.md +++ b/docs/sources/developers/plugins/add-support-for-annotations.md @@ -85,7 +85,7 @@ Let users write custom annotation queries to only display the annotation events > **Note**: Annotation query editors have yet to receive support for React. The instructions here are given for Angular. Fortunately, you can run Angular even in a plugin otherwise written using React. This section will be updated once React support for annotation queries editors is available. -1. Create a file called `AnnotationQueryEditor.ts` in the plugin root directory, with the following content. +1. Create a file called `AnnotationQueryEditor.ts` in the `src` directory, with the following content. ```ts export class AnnotationQueryEditor { @@ -94,12 +94,12 @@ Let users write custom annotation queries to only display the annotation events annotation: any; constructor() { - this.annotation.rawQuery = this.annotation.rawQuery || ''; + this.annotation.queryText = this.annotation.queryText || ''; } } ``` -1. Create a directory called `partials` in the plugin root directory. +1. Create a directory called `partials` in the `src` directory. 1. Create a file called `annotations.editor.html` in the `partials` directory you just created, with the following content.