From 8e9778215b25db0447029ff00e8dfd0a8955f1ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 24 Nov 2020 09:31:25 +0100 Subject: [PATCH] Heatmap: Fixes issue introduced by new eventbus (#29322) --- public/app/plugins/panel/heatmap/rendering.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/panel/heatmap/rendering.ts b/public/app/plugins/panel/heatmap/rendering.ts index 1a4801c580c..f936d553b39 100644 --- a/public/app/plugins/panel/heatmap/rendering.ts +++ b/public/app/plugins/panel/heatmap/rendering.ts @@ -735,7 +735,7 @@ export class HeatmapRenderer { } onMouseLeave() { - this.ctrl.dashboard.$emit(new LegacyGraphHoverClearEvent()); + this.ctrl.dashboard.events.publish(new LegacyGraphHoverClearEvent()); this.clearCrosshair(); } @@ -781,7 +781,7 @@ export class HeatmapRenderer { // Set minimum offset to prevent showing legend from another panel pos.panelRelY = Math.max(pos.offset.y / this.height, 0.001); // broadcast to other graph panels that we are hovering - this.ctrl.dashboard.events.emit$(new LegacyGraphHoverEvent({ pos: pos, panel: this.panel })); + this.ctrl.dashboard.events.publish(new LegacyGraphHoverEvent({ pos: pos, panel: this.panel })); } limitSelection(x2: number) {