(() => localStorage.getItem('hamlab.disks.smart') === '1')
const rate = useRefreshMs()
const load = useCallback(async () => {
@@ -205,13 +208,14 @@ export default function Disks() {
Devices · {devs.length}
+ {hasSmart && }
{!hasSmart && { try { const t = await api.installPackages(['smartmontools']); setTask(t.id) } catch (e) { toast(e instanceof Error ? e.message : 'failed', 'err') } }}>Install smartmontools}
↻
{!hasSmart && SMART health needs smartmontools on this host. Install it with the button, then reload.
}
{task && { toast(`${t.title}: ${t.exit_code === 0 ? 'finished' : `exited ${t.exit_code}`}`, t.exit_code === 0 ? 'ok' : 'err'); load() }} />}
- {devs.map((d) => )}
+ {devs.map((d) => )}
ZFS