From e05ec044af0c332f81aa44b7ddcbae14d544ca27 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 16:32:56 +0200 Subject: [PATCH] Added custom disk label feature --- _frontend/src/components/widgets/DiskUsage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_frontend/src/components/widgets/DiskUsage.jsx b/_frontend/src/components/widgets/DiskUsage.jsx index 1d3573f..6cc7426 100644 --- a/_frontend/src/components/widgets/DiskUsage.jsx +++ b/_frontend/src/components/widgets/DiskUsage.jsx @@ -3,7 +3,7 @@ import { PieChart } from '../charts/PieChart.jsx' import { Icon } from '../Icon.jsx' import { ToastMessage, useToasts } from '../Toasts.jsx' -export const DiskUsage = ({ disk }) => { +export const DiskUsage = ({ disk, diskLabel }) => { const [showToast] = useToasts() const [output, err, refreshOutput] = useRemoteState( `/api/monitor/status?script=${encodeURIComponent(`disk-usage ${disk}`)}`, @@ -14,7 +14,7 @@ export const DiskUsage = ({ disk }) => { const title = ( <> - Spazio Utilizzato • {disk} + Spazio Utilizzato • {diskLabel || disk} )