|
|
|
@ -249,7 +249,8 @@ export function cleanServiceGroups(groups) {
|
|
|
|
|
podSelector,
|
|
|
|
|
wan, // opnsense widget,
|
|
|
|
|
enableBlocks, // emby/jellyfin
|
|
|
|
|
enableNowPlaying
|
|
|
|
|
enableNowPlaying,
|
|
|
|
|
volume // diskstation widget
|
|
|
|
|
} = cleanedService.widget;
|
|
|
|
|
|
|
|
|
|
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
|
|
|
|
@ -284,6 +285,9 @@ export function cleanServiceGroups(groups) {
|
|
|
|
|
if (enableBlocks) cleanedService.widget.enableBlocks = enableBlocks === 'true';
|
|
|
|
|
if (enableNowPlaying) cleanedService.widget.enableNowPlaying = enableNowPlaying === 'true';
|
|
|
|
|
}
|
|
|
|
|
if (type === "diskstation") {
|
|
|
|
|
if (volume) cleanedService.widget.volume = volume;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return cleanedService;
|
|
|
|
|