From 2178bbd669c68c754f9e0b70ad083d4aec5d8891 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 23 Feb 2021 20:05:26 -0800 Subject: [PATCH] Bring back the active annotation logic to the v-annotations primitive --- ui/app/components/chart-primitives/v-annotations.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/components/chart-primitives/v-annotations.hbs b/ui/app/components/chart-primitives/v-annotations.hbs index 0c61c82b0..f7b13a1d1 100644 --- a/ui/app/components/chart-primitives/v-annotations.hbs +++ b/ui/app/components/chart-primitives/v-annotations.hbs @@ -5,8 +5,8 @@ type="button" title={{annotation.label}} class="indicator {{if (or - (and @key (eq-by @key annotation.annotation this.activeAnnotation)) - (and (not @key) (eq annotation.annotation this.activeAnnotation)) + (and @key (eq-by @key annotation.annotation @activeAnnotation)) + (and (not @key) (eq annotation.annotation @activeAnnotation)) ) "is-active"}}" {{on "click" (fn this.selectAnnotation annotation.annotation)}}> {{x-icon annotation.icon}}