Fix widget option boolean parsing with docker labels

pull/1334/head
shamoon 2 years ago
parent 4824ed1a2c
commit e4788cc7f6

@ -297,8 +297,8 @@ export function cleanServiceGroups(groups) {
if (wan) cleanedService.widget.wan = wan;
}
if (type === "emby" || type === "jellyfin") {
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = enableBlocks;
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = enableNowPlaying;
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
}
if (type === "diskstation") {
if (volume) cleanedService.widget.volume = volume;

Loading…
Cancel
Save