mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
✨ Add migrator for modules to widgets
This commit is contained in:
@@ -60,13 +60,13 @@ function DashDotTile({ widget }: DashDotTileProps) {
|
||||
dashDotUrl,
|
||||
});
|
||||
|
||||
const graphs = widget?.properties.graphs.map((g) => ({
|
||||
id: g,
|
||||
name: t(`card.graphs.${g}.title`),
|
||||
twoSpan: ['network', 'gpu'].includes(g),
|
||||
const graphs = widget?.properties.graphs.map((graph) => ({
|
||||
id: graph,
|
||||
name: t(`card.graphs.${graph}.title`),
|
||||
twoSpan: ['network', 'gpu'].includes(graph),
|
||||
isMultiView:
|
||||
(g === 'cpu' && widget.properties.cpuMultiView) ||
|
||||
(g === 'storage' && widget.properties.storageMultiView),
|
||||
(graph === 'cpu' && widget.properties.cpuMultiView) ||
|
||||
(graph === 'storage' && widget.properties.storageMultiView),
|
||||
}));
|
||||
|
||||
const heading = (
|
||||
|
||||
Reference in New Issue
Block a user