mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Hide disabled components from overview page CIMC (#12650)
* Hide Disabled Components from Overview Page If $component is disabled, hide it from the overview page. * Update cimc.inc.php continue instead of break
This commit is contained in:
@@ -17,7 +17,9 @@ if (count($components) > 0) {
|
||||
<table class="table table-hover table-condensed table-striped">
|
||||
<?php
|
||||
foreach ($components as $component => $array) {
|
||||
if ($array['status'] == 2) {
|
||||
if ($array['disabled'] == 1) {
|
||||
continue;
|
||||
} elseif ($array['status'] == 2) {
|
||||
$class = 'danger';
|
||||
$message = 'Alert';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user