mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into react-panels
This commit is contained in:
@@ -218,7 +218,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
// and add built in variables interval and interval_ms
|
||||
var scopedVars = Object.assign({}, this.panel.scopedVars, {
|
||||
__interval: { text: this.interval, value: this.interval },
|
||||
__interval_ms: { text: String(this.intervalMs), value: String(this.intervalMs) },
|
||||
__interval_ms: { text: this.intervalMs, value: this.intervalMs },
|
||||
});
|
||||
|
||||
var metricsQuery = {
|
||||
@@ -328,7 +328,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
range,
|
||||
};
|
||||
const exploreState = encodePathComponent(JSON.stringify(state));
|
||||
this.$location.url(`/explore/${exploreState}`);
|
||||
this.$location.url(`/explore?state=${exploreState}`);
|
||||
}
|
||||
|
||||
addQuery(target) {
|
||||
|
||||
Reference in New Issue
Block a user