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 (wan) cleanedService.widget.wan = wan;
} }
if (type === "emby" || type === "jellyfin") { if (type === "emby" || type === "jellyfin") {
if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = enableBlocks; if (enableBlocks !== undefined) cleanedService.widget.enableBlocks = JSON.parse(enableBlocks);
if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = enableNowPlaying; if (enableNowPlaying !== undefined) cleanedService.widget.enableNowPlaying = JSON.parse(enableNowPlaying);
} }
if (type === "diskstation") { if (type === "diskstation") {
if (volume) cleanedService.widget.volume = volume; if (volume) cleanedService.widget.volume = volume;

Loading…
Cancel
Save