Allow specify object fit for mjpeg widget
This commit is contained in:
1 parent
ba19f77b8f
commit
f8c382c480
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user