From a425ce0826f77a083a36ca60edb2419b5266ae46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 7 Apr 2016 10:57:55 -0400 Subject: [PATCH] fix(graph panel): Fixed legend option max not updating, fixes #4601 --- CHANGELOG.md | 1 + public/app/features/panel/panel_ctrl.ts | 1 + public/app/plugins/panel/graph/tab_legend.html | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 936be63f7c6..ac4d80acbd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * **Postgres**: Fixed page render crash when using postgres, fixes [#4558](https://github.com/grafana/grafana/issues/4558) * **Table panel**: Fixed table panel bug when trying to show annotations in table panel, fixes [#4563](https://github.com/grafana/grafana/issues/4563) * **App Config**: Fixed app config issue showing content of other app config, fixes [#4575](https://github.com/grafana/grafana/issues/4575) +* **Graph Panel**: Fixed legend option max not updating, fixes [#4601](https://github.com/grafana/grafana/issues/4601) # 3.0.0-beta2 (2016-04-04) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index ff2e7fde1bd..4f3df7e6e8a 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -46,6 +46,7 @@ export class PanelCtrl { $scope.$on("refresh", () => this.refresh()); $scope.$on("render", () => this.render()); + $scope.$on("$destroy", () => this.events.emit('panel-teardown')); } init() { diff --git a/public/app/plugins/panel/graph/tab_legend.html b/public/app/plugins/panel/graph/tab_legend.html index ac9e11dcaf0..82e1335dc10 100644 --- a/public/app/plugins/panel/graph/tab_legend.html +++ b/public/app/plugins/panel/graph/tab_legend.html @@ -13,7 +13,6 @@ label="To the right" label-class="width-7" checked="ctrl.panel.legend.rightSide" on-change="ctrl.render()"> -
@@ -31,7 +30,7 @@ + checked="ctrl.panel.legend.max" on-change="ctrl.legendValuesOptionChanged()">