Display warning icons on non-functional subcomponents

Warning icons are now displayed only in subcomponents that are
present and non-functional. Only "present" subcomponents are
displayed so only need to check for functional.
An example of using this is cores of the cpu. Only display
a warning on a present and non-functional core.

Resolves openbmc/openbmc#2989

Tested: Only see a warning on a non-functional core.
Change-Id: Ic22b7531de4dfcc445bfc5eae7dd23b0089f2cdf
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/server-health/controllers/inventory-overview-controller.html b/app/server-health/controllers/inventory-overview-controller.html
index 67a694d..29f2c37 100644
--- a/app/server-health/controllers/inventory-overview-controller.html
+++ b/app/server-health/controllers/inventory-overview-controller.html
@@ -47,7 +47,7 @@
 					<div class="inventory__metadata-scroll show-scroll"> <!-- If content overflows; add 'show-scroll' class via JS to force visible scrollbar in webkit browsers-->
 						<div class="content-label">Subcomponents</div>
 						<div ng-repeat="sub_component in inventory.sub_components" class="inline inventory__metadata-block" ng-if="sub_component.Present">
-							<p class="courier-bold">{{sub_component.title}}<span class="icon icon__warning" ng-if="sub_component.Present"></span></p>
+							<p class="courier-bold">{{sub_component.title}}<span class="icon icon__warning" ng-if="!sub_component.Functional"></span></p>
 						</div>
 					</div>
 				</div>