Consistent widget params
This commit is contained in:
parent
8c1c7f5d97
commit
ce018fc192
@ -378,7 +378,7 @@ export function cleanServiceGroups(groups) {
|
|||||||
metric,
|
metric,
|
||||||
pointsLimit,
|
pointsLimit,
|
||||||
|
|
||||||
// glances, customapi
|
// glances, customapi, iframe
|
||||||
refreshInterval,
|
refreshInterval,
|
||||||
|
|
||||||
// iframe
|
// iframe
|
||||||
@ -498,12 +498,8 @@ export function cleanServiceGroups(groups) {
|
|||||||
} else {
|
} else {
|
||||||
cleanedService.widget.chart = true;
|
cleanedService.widget.chart = true;
|
||||||
}
|
}
|
||||||
if (refreshInterval && Number.isInteger(refreshInterval) && refreshInterval > 0) {
|
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||||
cleanedService.widget.refreshInterval = refreshInterval;
|
if (pointsLimit) cleanedService.widget.pointsLimit = pointsLimit;
|
||||||
}
|
|
||||||
if (pointsLimit && Number.isInteger(pointsLimit) && pointsLimit > 0) {
|
|
||||||
cleanedService.widget.pointsLimit = pointsLimit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (type === "mjpeg") {
|
if (type === "mjpeg") {
|
||||||
if (stream) cleanedService.widget.stream = stream;
|
if (stream) cleanedService.widget.stream = stream;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user