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:
djamp42
2021-03-26 09:46:38 -04:00
committed by GitHub
parent aac57e60a7
commit 9465e0d305

View File

@@ -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 {