prevent refresh on fixed time window

This commit is contained in:
Jiang Ye 2018-06-09 12:16:15 -04:00 committed by Torkel Ödegaard
parent ec4b165b3c
commit 4c4e5533a1

View File

@ -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;
}