Dashboard: Refresh intervals should not always add the server min refresh interval (#26150)
This commit is contained in:
@@ -79,12 +79,7 @@ export class TimeSrv {
|
|||||||
return intervals;
|
return intervals;
|
||||||
}
|
}
|
||||||
|
|
||||||
const validIntervals = intervals.filter(str => str !== '').filter(this.contextSrv.isAllowedInterval);
|
return intervals.filter(str => str !== '').filter(this.contextSrv.isAllowedInterval);
|
||||||
|
|
||||||
if (validIntervals.indexOf(this.contextSrv.minRefreshInterval) === -1) {
|
|
||||||
validIntervals.unshift(this.contextSrv.minRefreshInterval);
|
|
||||||
}
|
|
||||||
return validIntervals;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private parseTime() {
|
private parseTime() {
|
||||||
|
|||||||
Reference in New Issue
Block a user