mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prevent refresh on fixed time window
This commit is contained in:
parent
ec4b165b3c
commit
4c4e5533a1
@ -85,6 +85,11 @@ export class TimeSrv {
|
||||
if (params.to) {
|
||||
this.time.to = this.parseUrlParam(params.to) || this.time.to;
|
||||
}
|
||||
// if absolute ignore refresh option saved to dashboard
|
||||
if (params.to && params.to.indexOf('now') === -1) {
|
||||
this.refresh = false;
|
||||
}
|
||||
// but if refresh explicitly set then use that
|
||||
if (params.refresh) {
|
||||
this.refresh = params.refresh || this.refresh;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user