Add fields to the DIMM inventory table
There is a request to see three additional fields from Redfish in the
DIMM inventory table: https://github.com/openbmc/webui-vue/issues/107.
This change adds Manufacturer, Error correction, and Rank count data
from Redfish into the DIMM inventory table.
Tested:
Confirmed that the three fields show in the table with the correct data
from Redfish.
Change-Id: I6f1fc5103649abf8350e5b5c107c11eea3d1a599
Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
index 459d3bb..196335e 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
@@ -71,6 +71,11 @@
<b-row>
<b-col sm="6" xl="6">
<dl>
+ <!-- Manufacturer -->
+ <dt>{{ $t('pageInventory.table.manufacturer') }}:</dt>
+ <dd>{{ dataFormatter(item.manufacturer) }}</dd>
+ </dl>
+ <dl>
<!-- Part Number -->
<dt>{{ $t('pageInventory.table.partNumber') }}:</dt>
<dd>{{ dataFormatter(item.partNumber) }}</dd>
@@ -101,6 +106,11 @@
</dd>
</dl>
<dl>
+ <!-- Rank Count -->
+ <dt>{{ $t('pageInventory.table.rankCount') }}:</dt>
+ <dd>{{ dataFormatter(item.rankCount) }}</dd>
+ </dl>
+ <dl>
<!-- Status-->
<dt>{{ $t('pageInventory.table.statusState') }}:</dt>
<dd>{{ dataFormatter(item.statusState) }}</dd>
@@ -156,6 +166,11 @@
{{ $t('unit.MHz') }}
</dd>
</dl>
+ <dl>
+ <!-- Error Correction -->
+ <dt>{{ $t('pageInventory.table.errorCorrection') }}:</dt>
+ <dd>{{ dataFormatter(item.errorCorrection) }}</dd>
+ </dl>
</b-col>
</b-row>
</b-container>