Commit b8baeac8 by Torkel Ödegaard

Merge branch 'master' of github.com:grafana/grafana

parents a425ce08 513aa61d
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* **Table panel**: Fixed table panel bug when trying to show annotations in table panel, fixes [#4563](https://github.com/grafana/grafana/issues/4563) * **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) * **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) * **Graph Panel**: Fixed legend option max not updating, fixes [#4601](https://github.com/grafana/grafana/issues/4601)
* **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) # 3.0.0-beta2 (2016-04-04)
......
...@@ -82,6 +82,7 @@ class MetricsPanelCtrl extends PanelCtrl { ...@@ -82,6 +82,7 @@ class MetricsPanelCtrl extends PanelCtrl {
this.loading = true; this.loading = true;
// load datasource service // load datasource service
this.setTimeQueryStart();
this.datasourceSrv.get(this.panel.datasource) this.datasourceSrv.get(this.panel.datasource)
.then(this.issueQueries.bind(this)) .then(this.issueQueries.bind(this))
.then(this.handleQueryResult.bind(this)) .then(this.handleQueryResult.bind(this))
......
...@@ -5,6 +5,7 @@ import './legend'; ...@@ -5,6 +5,7 @@ import './legend';
import './series_overrides_ctrl'; import './series_overrides_ctrl';
import template from './template'; import template from './template';
import angular from 'angular';
import moment from 'moment'; import moment from 'moment';
import kbn from 'app/core/utils/kbn'; import kbn from 'app/core/utils/kbn';
import _ from 'lodash'; import _ from 'lodash';
...@@ -108,7 +109,7 @@ class GraphCtrl extends MetricsPanelCtrl { ...@@ -108,7 +109,7 @@ class GraphCtrl extends MetricsPanelCtrl {
constructor($scope, $injector, private annotationsSrv) { constructor($scope, $injector, private annotationsSrv) {
super($scope, $injector); super($scope, $injector);
_.defaults(this.panel, panelDefaults); _.defaults(this.panel, angular.copy(panelDefaults));
_.defaults(this.panel.tooltip, panelDefaults.tooltip); _.defaults(this.panel.tooltip, panelDefaults.tooltip);
_.defaults(this.panel.grid, panelDefaults.grid); _.defaults(this.panel.grid, panelDefaults.grid);
_.defaults(this.panel.legend, panelDefaults.legend); _.defaults(this.panel.legend, panelDefaults.legend);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment