Add Assemblies schema to Hardware Status - Inventory and LEDs
Signed-off-by: Sneha Patel <Snehaben.Patel@ibm.com>
Change-Id: I1a4edae664d008a4f618d03d62e2319d8157ed6d
diff --git a/src/views/HardwareStatus/Inventory/Inventory.vue b/src/views/HardwareStatus/Inventory/Inventory.vue
index a729aaa..e3a7ea2 100644
--- a/src/views/HardwareStatus/Inventory/Inventory.vue
+++ b/src/views/HardwareStatus/Inventory/Inventory.vue
@@ -42,6 +42,9 @@
<!-- Processors table -->
<table-processors ref="processors" />
+
+ <!-- Assembly table -->
+ <table-assembly ref="assembly" />
</b-container>
</template>
@@ -55,6 +58,7 @@
import TableBmcManager from './InventoryTableBmcManager';
import TableChassis from './InventoryTableChassis';
import TableProcessors from './InventoryTableProcessors';
+import TableAssembly from './InventoryTableAssembly';
import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
import PageSection from '@/components/Global/PageSection';
import JumpLink16 from '@carbon/icons-vue/es/jump-link/16';
@@ -72,6 +76,7 @@
TableBmcManager,
TableChassis,
TableProcessors,
+ TableAssembly,
PageSection,
JumpLink: JumpLink16,
},
@@ -133,6 +138,12 @@
href: '#system',
linkText: this.$t('pageInventory.system'),
},
+ {
+ id: 'assembly',
+ dataRef: 'assembly',
+ href: '#assembly',
+ linkText: this.$t('pageInventory.assemblies'),
+ },
],
};
},
@@ -170,6 +181,9 @@
const systemTablePromise = new Promise((resolve) => {
this.$root.$on('hardware-status-system-complete', () => resolve());
});
+ const assemblyTablePromise = new Promise((resolve) => {
+ this.$root.$on('hardware-status-assembly-complete', () => resolve());
+ });
// Combine all child component Promises to indicate
// when page data load complete
Promise.all([
@@ -181,6 +195,7 @@
processorsTablePromise,
serviceIndicatorPromise,
systemTablePromise,
+ assemblyTablePromise,
]).finally(() => this.endLoader());
},
};