diff --git a/@xen-orchestra/lite/src/components/host/network/HostPifTable.vue b/@xen-orchestra/lite/src/components/host/network/HostPifTable.vue index 67cf2bafe36..615f7fd74c2 100644 --- a/@xen-orchestra/lite/src/components/host/network/HostPifTable.vue +++ b/@xen-orchestra/lite/src/components/host/network/HostPifTable.vue @@ -15,7 +15,7 @@ -
+
- -
- - - - - - - - - - - -
- -
-
- - - - - {{ column.value.name }} - -
-
- {{ column.value }} -
- - - -
-
-
- - -
{{ $t('no-result') }}
-
- -
{{ $t('no-pif-detected') }}
-
-
+
+ + + + +
+ +
{{ $t('no-result') }}
+
+
@@ -115,11 +109,9 @@ import { useNetworkStore } from '@/stores/xen-api/network.store' import { usePifMetricsStore } from '@/stores/xen-api/pif-metrics.store' import VtsConnectionStatus from '@core/components/connection-status/VtsConnectionStatus.vue' import VtsIcon from '@core/components/icon/VtsIcon.vue' -import VtsErrorNoDataHero from '@core/components/state-hero/VtsErrorNoDataHero.vue' -import VtsLoadingHero from '@core/components/state-hero/VtsLoadingHero.vue' import VtsStateHero from '@core/components/state-hero/VtsStateHero.vue' import ColumnTitle from '@core/components/table/ColumnTitle.vue' -import VtsTable from '@core/components/table/VtsTable.vue' +import VtsDataTable from '@core/components/table/VtsDataTable.vue' import UiButton from '@core/components/ui/button/UiButton.vue' import UiButtonIcon from '@core/components/ui/button-icon/UiButtonIcon.vue' import UiCheckbox from '@core/components/ui/checkbox/UiCheckbox.vue' @@ -148,7 +140,7 @@ import { import { computed, ref } from 'vue' import { useI18n } from 'vue-i18n' -const { pifs, hasError } = defineProps<{ +const { pifs } = defineProps<{ pifs: XenApiPif[] isReady: boolean hasError: boolean @@ -206,14 +198,14 @@ const { visibleColumns, rows } = useTable('pifs', filteredPifs, { name: getNetworkName(record.network), management: record.management, }), - { label: t('network'), isHideable: true } + { label: t('network') } ), - define('device', { label: t('device'), isHideable: true }), - define('status', record => getPifStatus(record), { label: t('status'), isHideable: true }), - define('VLAN', record => getVlanData(record.VLAN), { label: t('vlan'), isHideable: true }), - define('IP', { label: t('ip-addresses'), isHideable: true }), - define('MAC', { label: t('mac-addresses'), isHideable: true }), - define('ip_configuration_mode', { label: t('ip-mode'), isHideable: true }), + define('device', { label: t('device') }), + define('status', record => getPifStatus(record), { label: t('status') }), + define('VLAN', record => getVlanData(record.VLAN), { label: t('vlan') }), + define('IP', { label: t('ip-addresses') }), + define('MAC', { label: t('mac-addresses') }), + define('ip_configuration_mode', { label: t('ip-mode') }), define('more', () => '', { label: '', isHideable: false }), ], }) @@ -233,7 +225,7 @@ const getHeaderIcon = (status: PifHeader) => headerIcon[status]