add mjpeg stream widget

This commit is contained in:
Ben Phelps 2023-08-06 14:21:01 +03:00
parent 15bf55952b
commit ba19f77b8f
5 changed files with 32 additions and 0 deletions

View file

@ -296,6 +296,7 @@ export function cleanServiceGroups(groups) {
userEmail, // azuredevops
repositoryId,
metric, // glances
stream, // mjpeg
} = cleanedService.widget;
let fieldsList = fields;
@ -362,6 +363,9 @@ export function cleanServiceGroups(groups) {
if (type === "glances") {
if (metric) cleanedService.widget.metric = metric;
}
if (type === "mjpeg") {
if (stream) cleanedService.widget.stream = stream;
}
}
return cleanedService;