mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Allow specify object fit for mjpeg widget
This commit is contained in:
parent
ba19f77b8f
commit
f8c382c480
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue