Allow specify object fit for mjpeg widget

This commit is contained in:
shamoon 2023-08-06 07:33:08 -07:00
parent ba19f77b8f
commit f8c382c480
2 changed files with 4 additions and 2 deletions

View file

@ -297,6 +297,7 @@ export function cleanServiceGroups(groups) {
repositoryId,
metric, // glances
stream, // mjpeg
fit,
} = cleanedService.widget;
let fieldsList = fields;
@ -365,6 +366,7 @@ export function cleanServiceGroups(groups) {
}
if (type === "mjpeg") {
if (stream) cleanedService.widget.stream = stream;
if (fit) cleanedService.widget.fit = fit;
}
}