summaryrefslogtreecommitdiff
path: root/src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
diff options
context:
space:
mode:
authorGlukhov Mikhail <mikl@greenfil.ru>2022-12-24 12:16:53 +0300
committerGlukhov Mikhail <mikl@greenfil.ru>2023-02-14 08:18:42 +0300
commitd0b078f692fc02578b0bfbc3868ce81516c71dd3 (patch)
treeb645511c121a8c3f583b6019f0b76f868d529f6b /src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue
parent713dae09ac29fe53ca76e44b7b3a75f114479eca (diff)
downloadwebui-vue-d0b078f692fc02578b0bfbc3868ce81516c71dd3.tar.xz
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>
Diffstat (limited to 'src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue')
-rw-r--r--src/views/HardwareStatus/Inventory/InventoryTableDimmSlot.vue20
1 files changed, 16 insertions, 4 deletions
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>