diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-06-08 21:03:11 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-06-18 00:04:55 +0300 |
commit | e24b17d2f599a34895acb9eccff3144af55484c5 (patch) | |
tree | 5576908d3fdd2966872f4dd763237e85a682e81a /src/views/Health/HardwareStatus/HardwareStatus.vue | |
parent | b1f559f03e3f464c1b8b19a9327158be0ecafe62 (diff) | |
download | webui-vue-e24b17d2f599a34895acb9eccff3144af55484c5.tar.xz |
Add DIMM slot table to hardware status page
Add items at /redfish/v1/Systems/system/Memory endpoint to
DIMM slot table. The table is sortable and has a row expansion
to view details. The code is currently missing most properties
needed to match the design. This table will need to be revisited
when all properties are available.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I07cacf3403fe84431cb9fe0e4315069fc7baf27d
Diffstat (limited to 'src/views/Health/HardwareStatus/HardwareStatus.vue')
-rw-r--r-- | src/views/Health/HardwareStatus/HardwareStatus.vue | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/views/Health/HardwareStatus/HardwareStatus.vue b/src/views/Health/HardwareStatus/HardwareStatus.vue index 2860e599..4d29a3d9 100644 --- a/src/views/Health/HardwareStatus/HardwareStatus.vue +++ b/src/views/Health/HardwareStatus/HardwareStatus.vue @@ -5,6 +5,9 @@ <!-- System table --> <table-system /> + <!-- DIMM slot table --> + <table-dimm-slot /> + <!-- Power supplies table --> <table-power-supplies /> </b-container> @@ -14,16 +17,20 @@ import PageTitle from '@/components/Global/PageTitle'; import TableSystem from './HardwareStatusTableStystem'; import TablePowerSupplies from './HardwareStatusTablePowerSupplies'; +import TableDimmSlot from './HardwareStatusTableDimmSlot'; import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin'; export default { - components: { PageTitle, TablePowerSupplies, TableSystem }, + components: { PageTitle, TableDimmSlot, TablePowerSupplies, TableSystem }, mixins: [LoadingBarMixin], created() { this.startLoader(); const systemTablePromise = new Promise(resolve => { this.$root.$on('hardwareStatus::system::complete', () => resolve()); }); + const dimmSlotTablePromise = new Promise(resolve => { + this.$root.$on('hardwareStatus::dimmSlot::complete', () => resolve()); + }); const powerSuppliesTablePromise = new Promise(resolve => { this.$root.$on('hardwareStatus::powerSupplies::complete', () => resolve() @@ -31,9 +38,11 @@ export default { }); // Combine all child component Promises to indicate // when page data load complete - Promise.all([systemTablePromise, powerSuppliesTablePromise]).finally(() => - this.endLoader() - ); + Promise.all([ + systemTablePromise, + dimmSlotTablePromise, + powerSuppliesTablePromise + ]).finally(() => this.endLoader()); }, beforeRouteLeave(to, from, next) { // Hide loader if user navigates away from page |