Reducing values to a common format
I use this patch to convert all values into the
format <Description>:<Value><Unit of Measure>.
I put the units of measure in a separate
localization area in order to use them in
the sensor page in the future.
Change-Id: Ic6554860c4185bc4d681a97205051799c6637b5c
Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
index cf2cf02..e62f500 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableSystem.vue
@@ -115,7 +115,10 @@
<dd>{{ dataFormatter(item.memorySummaryHealthRollup) }}</dd>
<!-- Total system memory -->
<dt>{{ $t('pageInventory.table.totalSystemMemoryGiB') }}:</dt>
- <dd>{{ dataFormatter(item.totalSystemMemoryGiB) }}GB</dd>
+ <dd>
+ {{ dataFormatter(item.totalSystemMemoryGiB) }}
+ {{ $t('unit.GiB') }}
+ </dd>
</dl>
<!-- Processor Summary -->
<p class="mt-1 mb-2 h6 float-none m-0">