From d0b078f692fc02578b0bfbc3868ce81516c71dd3 Mon Sep 17 00:00:00 2001
From: Glukhov Mikhail <mikl@greenfil.ru>
Date: Sat, 24 Dec 2022 12:16:53 +0300
Subject: 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>
---
 .../Inventory/InventoryTableDimmSlot.vue             | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

(limited to 'src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue')

diff --git a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
index d29f6f8e..459d3bb3 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
@@ -95,7 +95,10 @@
               <dl>
                 <!-- Capacity MiB -->
                 <dt>{{ $t('pageInventory.table.capacityMiB') }}:</dt>
-                <dd>{{ dataFormatter(item.capacityMiB) }}</dd>
+                <dd>
+                  {{ dataFormatter(item.capacityMiB) }}
+                  {{ $t('unit.MiB') }}
+                </dd>
               </dl>
               <dl>
                 <!-- Status-->
@@ -132,17 +135,26 @@
               <dl>
                 <!-- Bus Width Bits -->
                 <dt>{{ $t('pageInventory.table.busWidthBits') }}:</dt>
-                <dd>{{ dataFormatter(item.busWidthBits) }}</dd>
+                <dd>
+                  {{ dataFormatter(item.busWidthBits) }}
+                  {{ $t('unit.bit') }}
+                </dd>
               </dl>
               <dl>
                 <!-- Data Width Bits -->
                 <dt>{{ $t('pageInventory.table.dataWidthBits') }}:</dt>
-                <dd>{{ dataFormatter(item.dataWidthBits) }}</dd>
+                <dd>
+                  {{ dataFormatter(item.dataWidthBits) }}
+                  {{ $t('unit.bit') }}
+                </dd>
               </dl>
               <dl>
                 <!-- Operating Speed Mhz -->
                 <dt>{{ $t('pageInventory.table.operatingSpeedMhz') }}:</dt>
-                <dd>{{ dataFormatter(item.operatingSpeedMhz) }} MHz</dd>
+                <dd>
+                  {{ dataFormatter(item.operatingSpeedMhz) }}
+                  {{ $t('unit.MHz') }}
+                </dd>
               </dl>
             </b-col>
           </b-row>
-- 
cgit v1.2.3

