From d0b078f692fc02578b0bfbc3868ce81516c71dd3 Mon Sep 17 00:00:00 2001 From: Glukhov Mikhail 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 :. 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 --- .../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 @@
{{ $t('pageInventory.table.capacityMiB') }}:
-
{{ dataFormatter(item.capacityMiB) }}
+
+ {{ dataFormatter(item.capacityMiB) }} + {{ $t('unit.MiB') }} +
@@ -132,17 +135,26 @@
{{ $t('pageInventory.table.busWidthBits') }}:
-
{{ dataFormatter(item.busWidthBits) }}
+
+ {{ dataFormatter(item.busWidthBits) }} + {{ $t('unit.bit') }} +
{{ $t('pageInventory.table.dataWidthBits') }}:
-
{{ dataFormatter(item.dataWidthBits) }}
+
+ {{ dataFormatter(item.dataWidthBits) }} + {{ $t('unit.bit') }} +
{{ $t('pageInventory.table.operatingSpeedMhz') }}:
-
{{ dataFormatter(item.operatingSpeedMhz) }} MHz
+
+ {{ dataFormatter(item.operatingSpeedMhz) }} + {{ $t('unit.MHz') }} +
-- cgit v1.2.3