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/InventoryTableChassis.vue b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
index b49cec7..4c557fa 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue
@@ -100,10 +100,16 @@
<dl>
<!-- Min power -->
<dt>{{ $t('pageInventory.table.minPowerWatts') }}:</dt>
- <dd>{{ dataFormatter(item.minPowerWatts) }}</dd>
+ <dd>
+ {{ dataFormatter(item.minPowerWatts) }}
+ {{ $t('unit.W') }}
+ </dd>
<!-- Max power -->
<dt>{{ $t('pageInventory.table.maxPowerWatts') }}:</dt>
- <dd>{{ dataFormatter(item.maxPowerWatts) }}</dd>
+ <dd>
+ {{ dataFormatter(item.maxPowerWatts) }}
+ {{ $t('unit.W') }}
+ </dd>
</dl>
</b-col>
</b-row>