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()">