fix(graph panel): fixed issue where newly added graph panels shared axes config binding, fixes #4582

This commit is contained in:
Torkel Ödegaard 2016-04-06 15:27:29 -04:00
parent cb5b6af9db
commit c3d88aa53d
2 changed files with 3 additions and 1 deletions

View File

@ -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 issue where newly added graph panels shared same axes config, fixes [#4582](https://github.com/grafana/grafana/issues/4582)
# 3.0.0-beta2 (2016-04-04)

View File

@ -5,6 +5,7 @@ import './legend';
import './series_overrides_ctrl';
import template from './template';
import angular from 'angular';
import moment from 'moment';
import kbn from 'app/core/utils/kbn';
import _ from 'lodash';
@ -108,7 +109,7 @@ class GraphCtrl extends MetricsPanelCtrl {
constructor($scope, $injector, private annotationsSrv) {
super($scope, $injector);
_.defaults(this.panel, panelDefaults);
_.defaults(this.panel, angular.copy(panelDefaults));
_.defaults(this.panel.tooltip, panelDefaults.tooltip);
_.defaults(this.panel.grid, panelDefaults.grid);
_.defaults(this.panel.legend, panelDefaults.legend);