|
|
@ -257,6 +257,7 @@ export function cleanServiceGroups(groups) {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
type, // all widgets
|
|
|
|
type, // all widgets
|
|
|
|
fields,
|
|
|
|
fields,
|
|
|
|
|
|
|
|
hideErrors,
|
|
|
|
server, // docker widget
|
|
|
|
server, // docker widget
|
|
|
|
container,
|
|
|
|
container,
|
|
|
|
currency, // coinmarketcap widget
|
|
|
|
currency, // coinmarketcap widget
|
|
|
@ -269,7 +270,7 @@ export function cleanServiceGroups(groups) {
|
|
|
|
wan, // opnsense widget,
|
|
|
|
wan, // opnsense widget,
|
|
|
|
enableBlocks, // emby/jellyfin
|
|
|
|
enableBlocks, // emby/jellyfin
|
|
|
|
enableNowPlaying,
|
|
|
|
enableNowPlaying,
|
|
|
|
volume // diskstation widget
|
|
|
|
volume, // diskstation widget
|
|
|
|
} = cleanedService.widget;
|
|
|
|
} = cleanedService.widget;
|
|
|
|
|
|
|
|
|
|
|
|
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
|
|
|
|
const fieldsList = typeof fields === 'string' ? JSON.parse(fields) : fields;
|
|
|
@ -277,6 +278,7 @@ export function cleanServiceGroups(groups) {
|
|
|
|
cleanedService.widget = {
|
|
|
|
cleanedService.widget = {
|
|
|
|
type,
|
|
|
|
type,
|
|
|
|
fields: fieldsList || null,
|
|
|
|
fields: fieldsList || null,
|
|
|
|
|
|
|
|
hide_errors: hideErrors || false,
|
|
|
|
service_name: service.name,
|
|
|
|
service_name: service.name,
|
|
|
|
service_group: serviceGroup.name,
|
|
|
|
service_group: serviceGroup.name,
|
|
|
|
};
|
|
|
|
};
|
|
|
|