Skip to content

Commit a425ce0

Browse files
committed
fix(graph panel): Fixed legend option max not updating, fixes grafana#4601
1 parent cb5b6af commit a425ce0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* **Postgres**: Fixed page render crash when using postgres, fixes [#4558](https://github.com/grafana/grafana/issues/4558)
55
* **Table panel**: Fixed table panel bug when trying to show annotations in table panel, fixes [#4563](https://github.com/grafana/grafana/issues/4563)
66
* **App Config**: Fixed app config issue showing content of other app config, fixes [#4575](https://github.com/grafana/grafana/issues/4575)
7+
* **Graph Panel**: Fixed legend option max not updating, fixes [#4601](https://github.com/grafana/grafana/issues/4601)
78

89
# 3.0.0-beta2 (2016-04-04)
910

public/app/features/panel/panel_ctrl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export class PanelCtrl {
4646

4747
$scope.$on("refresh", () => this.refresh());
4848
$scope.$on("render", () => this.render());
49+
$scope.$on("$destroy", () => this.events.emit('panel-teardown'));
4950
}
5051

5152
init() {

public/app/plugins/panel/graph/tab_legend.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ <h5 class="section-heading">Options</h5>
1313
label="To the right" label-class="width-7"
1414
checked="ctrl.panel.legend.rightSide" on-change="ctrl.render()">
1515
</gf-form-switch>
16-
1716
<div ng-if="ctrl.panel.legend.rightSide" class="gf-form">
1817
<label class="gf-form-label width-7">Width</label>
1918
<input type="number" class="gf-form-input max-width-5" placeholder="250" bs-tooltip="'Set a min-width for the legend side table/block'" data-placement="right" ng-model="ctrl.panel.legend.sideWidth" ng-change="ctrl.render()" ng-model-onblur>
@@ -31,7 +30,7 @@ <h5 class="section-heading">Values</h5>
3130

3231
<gf-form-switch class="gf-form max-width-12"
3332
label="Max" label-class="width-6" switch-class="max-width-5"
34-
checked="ctrl.panel.legend.max" on-change="ctrl.legendCaluesOptionChanged()">
33+
checked="ctrl.panel.legend.max" on-change="ctrl.legendValuesOptionChanged()">
3534
</gf-form-switch>
3635
</div>
3736

0 commit comments

Comments
 (0)