mirror of
https://github.com/unraid/webgui.git
synced 2026-01-28 20:49:04 -06:00
Merge pull request #1229 from bergware/master
Main: hide browse icon when array is offline
This commit is contained in:
@@ -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']}";
|
||||
|
||||
Reference in New Issue
Block a user