Allow specify object fit for mjpeg widget

This commit is contained in:
shamoon committed 2023-08-06 07:33:08 -07:00
1 parent ba19f77b8f
commit f8c382c480
2 files changed
+4 -2

No files matched your search

+2
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;
}
}