Added custom disk label feature

main
Antonio De Lucreziis 2 years ago
parent e1df9c938c
commit e05ec044af

@ -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 &bull; <code>{disk}</code>
Spazio Utilizzato &bull; <code>{diskLabel || disk}</code>
</>
)

Loading…
Cancel
Save