mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
✨ Add migration for standalone dash. service to widget
This commit is contained in:
@@ -211,11 +211,12 @@ const migrateModules = (config: Config): IWidget<string, any>[] => {
|
|||||||
shape: {},
|
shape: {},
|
||||||
} as IWeatherWidget;
|
} as IWeatherWidget;
|
||||||
case 'dashdot':
|
case 'dashdot':
|
||||||
case 'Dash.':
|
case 'Dash.': {
|
||||||
|
const oldDashDotService = config.services.find((service) => service.type === 'Dash.');
|
||||||
return {
|
return {
|
||||||
id: 'dashdot',
|
id: 'dashdot',
|
||||||
properties: {
|
properties: {
|
||||||
url: oldModule.options?.url?.value ?? '',
|
url: oldModule.options?.url?.value ?? oldDashDotService?.url ?? '',
|
||||||
cpuMultiView: oldModule.options?.cpuMultiView?.value ?? false,
|
cpuMultiView: oldModule.options?.cpuMultiView?.value ?? false,
|
||||||
storageMultiView: oldModule.options?.storageMultiView?.value ?? false,
|
storageMultiView: oldModule.options?.storageMultiView?.value ?? false,
|
||||||
useCompactView: oldModule.options?.useCompactView?.value ?? false,
|
useCompactView: oldModule.options?.useCompactView?.value ?? false,
|
||||||
@@ -229,6 +230,7 @@ const migrateModules = (config: Config): IWidget<string, any>[] => {
|
|||||||
},
|
},
|
||||||
shape: {},
|
shape: {},
|
||||||
} as IDashDotTile;
|
} as IDashDotTile;
|
||||||
|
}
|
||||||
case 'date':
|
case 'date':
|
||||||
return {
|
return {
|
||||||
id: 'date',
|
id: 'date',
|
||||||
|
|||||||
Reference in New Issue
Block a user