mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 19:29:13 -05:00
Dashboard update: suppress non-existing disks in array statistics
This commit is contained in:
@@ -112,6 +112,11 @@ function active_disks($disk) {
|
||||
$disks = array_filter($disks,'active_disks');
|
||||
$slots = count($disks) + count($devs);
|
||||
?>
|
||||
<?if ($slots<30):?>
|
||||
<style>
|
||||
table.share_status.fixed td:nth-child(<?=$slots+1?>)~td{display:none}
|
||||
</style>
|
||||
<?endif;?>
|
||||
<table class='share_status fixed'>
|
||||
<thead><tr>
|
||||
<?
|
||||
|
||||
Reference in New Issue
Block a user