From 09e8b5d478f212c094b7bea66c570fe0e673756e Mon Sep 17 00:00:00 2001
From: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Date: Mon, 8 Jun 2020 07:36:59 -0700
Subject: Add Chassis table to hardware status page

Add each chassis at /redfish/v1/Chassis endpoint to a table
with an expansion row to view property details.

Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I8d4c64fecac3857e0d4ece9fad81d9035e236c92
---
 src/views/Health/HardwareStatus/HardwareStatus.vue | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'src/views/Health/HardwareStatus/HardwareStatus.vue')

diff --git a/src/views/Health/HardwareStatus/HardwareStatus.vue b/src/views/Health/HardwareStatus/HardwareStatus.vue
index c104ea33..598313e1 100644
--- a/src/views/Health/HardwareStatus/HardwareStatus.vue
+++ b/src/views/Health/HardwareStatus/HardwareStatus.vue
@@ -5,6 +5,9 @@
     <!-- System table -->
     <table-system />
 
+    <!-- Chassis table -->
+    <table-chassis />
+
     <!-- DIMM slot table -->
     <table-dimm-slot />
 
@@ -22,6 +25,7 @@ import TableSystem from './HardwareStatusTableStystem';
 import TablePowerSupplies from './HardwareStatusTablePowerSupplies';
 import TableDimmSlot from './HardwareStatusTableDimmSlot';
 import TableFans from './HardwareStatusTableFans';
+import TableChassis from './HardwareStatusTableChassis';
 import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
 
 export default {
@@ -30,7 +34,8 @@ export default {
     TableDimmSlot,
     TablePowerSupplies,
     TableSystem,
-    TableFans
+    TableFans,
+    TableChassis
   },
   mixins: [LoadingBarMixin],
   created() {
@@ -38,6 +43,9 @@ export default {
     const systemTablePromise = new Promise(resolve => {
       this.$root.$on('hardwareStatus::system::complete', () => resolve());
     });
+    const chassisTablePromise = new Promise(resolve => {
+      this.$root.$on('hardwareStatus::chassis::complete', () => resolve());
+    });
     const dimmSlotTablePromise = new Promise(resolve => {
       this.$root.$on('hardwareStatus::dimmSlot::complete', () => resolve());
     });
@@ -53,6 +61,7 @@ export default {
     // when page data load complete
     Promise.all([
       systemTablePromise,
+      chassisTablePromise,
       dimmSlotTablePromise,
       fansTablePromise,
       powerSuppliesTablePromise
-- 
cgit v1.2.3

