From 59238ae2a6b0e9263b36bfec16674dbbb25bb5dc Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 25 Apr 2023 13:43:14 -0400 Subject: [PATCH] Added dashName variable Allows user to change DashDot Name --- src/widgets/dashDot/DashDotTile.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widgets/dashDot/DashDotTile.tsx b/src/widgets/dashDot/DashDotTile.tsx index fe19b0110..de21c8f16 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 ? dashName : t('card.title')} {!info &&

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

} {info && (