Inventory: replacement of FAN ID with Name
With a large number of FANs, a list of names is much easier to read than
a list of IDs. Now the Name is in the header of the row, and the ID only
when expanded.
Change-Id: Ic8a08e28db7f747f9765f45dbbda504bf827fb25
Signed-off-by: Glukhov Mikhail <mikl@greenfil.ru>
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableFans.vue b/src/views/HardwareStatus/Inventory/InventoryTableFans.vue
index 9e26d90..62f0b76 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableFans.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableFans.vue
@@ -56,9 +56,9 @@
<b-row>
<b-col sm="6" xl="4">
<dl>
- <!-- Name -->
- <dt>{{ $t('pageInventory.table.name') }}:</dt>
- <dd>{{ dataFormatter(item.name) }}</dd>
+ <!-- ID -->
+ <dt>{{ $t('pageInventory.table.id') }}:</dt>
+ <dd>{{ dataFormatter(item.id) }}</dd>
</dl>
<dl>
<!-- Serial number -->
@@ -133,8 +133,8 @@
sortable: false,
},
{
- key: 'id',
- label: this.$t('pageInventory.table.id'),
+ key: 'name',
+ label: this.$t('pageInventory.table.name'),
formatter: this.dataFormatter,
sortable: true,
},