Merge pull request #1229 from bergware/master

Main: hide browse icon when array is offline
This commit is contained in:
tom mortensen
2023-01-08 16:23:11 -08:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ function model($id) {
}
function device_info(&$disk,$online) {
global $pools, $var, $crypto;
if ($disk['type']=='Parity' || ($disk['type']=='Cache' && !in_array($disk['name'],$pools))) {
if (!$online || ($disk['type']=='Parity' || ($disk['type']=='Cache' && !in_array($disk['name'],$pools)))) {
$view = "<a class='view'></a>";
} else {
$dir = $disk['name']=='flash' ? "/boot" : "/mnt/{$disk['name']}";