From 9726f9a7cb07a3dcee14d641c2fea7b4f013e5fc Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Tue, 7 Sep 2021 15:33:16 -0500 Subject: Rename TableDataFormatter mixin to DataFormatter Mixin was renamed to reflect usage on all components, not only tables. Signed-off-by: Dixsie Wolmers Change-Id: Ic962ba879fffa39b9f6f93446771fbf6f67915d0 --- .../Inventory/InventoryTableChassis.vue | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/views/HardwareStatus/Inventory/InventoryTableChassis.vue') diff --git a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue index 0d535027..3f63c06c 100644 --- a/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue +++ b/src/views/HardwareStatus/Inventory/InventoryTableChassis.vue @@ -50,22 +50,22 @@
{{ $t('pageInventory.table.name') }}:
-
{{ tableFormatter(item.name) }}
+
{{ dataFormatter(item.name) }}
{{ $t('pageInventory.table.partNumber') }}:
-
{{ tableFormatter(item.partNumber) }}
+
{{ dataFormatter(item.partNumber) }}
{{ $t('pageInventory.table.serialNumber') }}:
-
{{ tableFormatter(item.serialNumber) }}
+
{{ dataFormatter(item.serialNumber) }}
{{ $t('pageInventory.table.model') }}:
- {{ tableFormatter(item.model) }} + {{ dataFormatter(item.model) }}
{{ $t('pageInventory.table.assetTag') }}:
- {{ tableFormatter(item.assetTag) }} + {{ dataFormatter(item.assetTag) }}
@@ -73,13 +73,13 @@
{{ $t('pageInventory.table.statusState') }}:
-
{{ tableFormatter(item.statusState) }}
+
{{ dataFormatter(item.statusState) }}
{{ $t('pageInventory.table.power') }}:
-
{{ tableFormatter(item.power) }}
+
{{ dataFormatter(item.power) }}
{{ $t('pageInventory.table.healthRollup') }}:
-
{{ tableFormatter(item.healthRollup) }}
+
{{ dataFormatter(item.healthRollup) }}
@@ -89,20 +89,20 @@
{{ $t('pageInventory.table.manufacturer') }}:
-
{{ tableFormatter(item.manufacturer) }}
+
{{ dataFormatter(item.manufacturer) }}
{{ $t('pageInventory.table.chassisType') }}:
-
{{ tableFormatter(item.chassisType) }}
+
{{ dataFormatter(item.chassisType) }}
{{ $t('pageInventory.table.minPowerWatts') }}:
-
{{ tableFormatter(item.minPowerWatts) }}
+
{{ dataFormatter(item.minPowerWatts) }}
{{ $t('pageInventory.table.maxPowerWatts') }}:
-
{{ tableFormatter(item.maxPowerWatts) }}
+
{{ dataFormatter(item.maxPowerWatts) }}
@@ -121,11 +121,11 @@ import StatusIcon from '@/components/Global/StatusIcon'; import TableRowExpandMixin, { expandRowLabel, } from '@/components/Mixins/TableRowExpandMixin'; -import TableDataFormatterMixin from '@/components/Mixins/TableDataFormatterMixin'; +import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin'; export default { components: { IconChevron, PageSection, StatusIcon }, - mixins: [BVToastMixin, TableRowExpandMixin, TableDataFormatterMixin], + mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], data() { return { fields: [ @@ -137,23 +137,23 @@ export default { { key: 'id', label: this.$t('pageInventory.table.id'), - formatter: this.tableFormatter, + formatter: this.dataFormatter, }, { key: 'health', label: this.$t('pageInventory.table.health'), - formatter: this.tableFormatter, + formatter: this.dataFormatter, tdClass: 'text-nowrap', }, { key: 'locationNumber', label: this.$t('pageInventory.table.locationNumber'), - formatter: this.tableFormatter, + formatter: this.dataFormatter, }, { key: 'identifyLed', label: this.$t('pageInventory.table.identifyLed'), - formatter: this.tableFormatter, + formatter: this.dataFormatter, }, ], expandRowLabel: expandRowLabel, -- cgit v1.2.3