mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
Merge branch 'v3.0.x'
This commit is contained in:
commit
91c6ebb06c
@ -58,6 +58,10 @@ class PrometheusQueryCtrl extends QueryCtrl {
|
|||||||
|
|
||||||
updateLink() {
|
updateLink() {
|
||||||
var range = this.panelCtrl.range;
|
var range = this.panelCtrl.range;
|
||||||
|
if (!range) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var rangeDiff = Math.ceil((range.to.valueOf() - range.from.valueOf()) / 1000);
|
var rangeDiff = Math.ceil((range.to.valueOf() - range.from.valueOf()) / 1000);
|
||||||
var endTime = range.to.utc().format('YYYY-MM-DD HH:mm');
|
var endTime = range.to.utc().format('YYYY-MM-DD HH:mm');
|
||||||
var expr = {
|
var expr = {
|
||||||
|
Loading…
Reference in New Issue
Block a user