Signed-off-by: Tim Marx <t.marx@proxmox.com>
}
return s.state != 'running';
});
+ bool get allDisksHealthy => !disks.any((s) => !isDiskHealthy(s));
PveNodeOverviewState._();
..isSuccess = false
//class
..standalone = standalone);
+
+ bool isDiskHealthy(PveNodesDisksListModel disk) {
+ return ['OK', 'PASSED'].contains(disk.health);
+ }
}
.map(
(d) => ListTile(
dense: true,
- leading: Icon(FontAwesomeIcons.solidHdd),
+ leading: Icon(FontAwesomeIcons.solidHdd,
+ color: state.isDiskHealthy(d)
+ ? Colors.grey
+ : Colors.red),
title: Text(
'${d.type.toUpperCase()}: ${d.devPath}'),
subtitle: Text(