diff --git a/public/locales/en/modules/dashdot.json b/public/locales/en/modules/dashdot.json index d0c21f74d..77842dda8 100644 --- a/public/locales/en/modules/dashdot.json +++ b/public/locales/en/modules/dashdot.json @@ -4,6 +4,9 @@ "description": "Displays the graphs of an external Dash. Instance inside Homarr.", "settings": { "title": "Settings for Dash. widget", + "dashName": { + "label": "Dash. Name" + }, "url": { "label": "Dash. URL" }, diff --git a/src/widgets/dashDot/DashDotTile.tsx b/src/widgets/dashDot/DashDotTile.tsx index fe19b0110..b3fbd76db 100644 --- a/src/widgets/dashDot/DashDotTile.tsx +++ b/src/widgets/dashDot/DashDotTile.tsx @@ -13,6 +13,10 @@ const definition = defineWidget({ id: 'dashdot', icon: 'https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/dashdot.png', options: { + dashName: { + type: 'text', + defaultValue: 'Dash.', + }, url: { type: 'text', defaultValue: '', @@ -177,11 +181,11 @@ function DashDotTile({ widget }: DashDotTileProps) { ); } - const { graphsOrder, usePercentages, columns, graphHeight } = widget.properties; + const { dashName, graphsOrder, usePercentages, columns, graphHeight } = widget.properties; return ( - {t('card.title')} + {dashName || t('card.title')} {!info &&

{t('card.errors.noInformation')}

} {info && (