From a05a2dd665a8c8e21885da175c96a2bc5a37bb77 Mon Sep 17 00:00:00 2001 From: Joris-K Date: Thu, 2 Jan 2025 11:17:19 +0100 Subject: [PATCH] improve --- .../network/PoolHostInternalNetworkTable.vue | 8 +- .../pool/network/PoolNetworksSidePanel.vue | 126 ++++++++++++------ .../pool/network/PoolNetworksTable.vue | 6 +- .../lite/src/stores/xen-api/network.store.ts | 42 +----- .../src/stores/xen-api/pif-metrics.store.ts | 20 +++ .../lite/src/stores/xen-api/pif.store.ts | 71 +++++++++- @xen-orchestra/lite/src/types/status.ts | 2 +- .../lite/src/views/pool/PoolNetworkView.vue | 17 ++- .../lib/components/table/ColumnTitle.vue | 2 +- .../lib/components/ui/panel/UiPanel.vue | 1 + 10 files changed, 197 insertions(+), 98 deletions(-) create mode 100644 @xen-orchestra/lite/src/stores/xen-api/pif-metrics.store.ts diff --git a/@xen-orchestra/lite/src/components/pool/network/PoolHostInternalNetworkTable.vue b/@xen-orchestra/lite/src/components/pool/network/PoolHostInternalNetworkTable.vue index ddd3d0db392..f6e476470b1 100644 --- a/@xen-orchestra/lite/src/components/pool/network/PoolHostInternalNetworkTable.vue +++ b/@xen-orchestra/lite/src/components/pool/network/PoolHostInternalNetworkTable.vue @@ -56,7 +56,9 @@ {{ column.label }} - {{ column.label }} + + {{ column.label }} + @@ -129,13 +131,13 @@ const { networks, isReady } = defineProps<{ }>() const emit = defineEmits<{ - rowSelectHostInternalNetwork: [value: any] + rowSelectNetwork: [value: any] }>() const searchQuery = ref('') const selectRow = (item: any, table: string) => { - emit('rowSelectHostInternalNetwork', { item, table }) + emit('rowSelectNetwork', { item, table }) } const filteredNetworks = computed(() => { diff --git a/@xen-orchestra/lite/src/components/pool/network/PoolNetworksSidePanel.vue b/@xen-orchestra/lite/src/components/pool/network/PoolNetworksSidePanel.vue index 513309db05d..8ae6a03f155 100644 --- a/@xen-orchestra/lite/src/components/pool/network/PoolNetworksSidePanel.vue +++ b/@xen-orchestra/lite/src/components/pool/network/PoolNetworksSidePanel.vue @@ -1,83 +1,103 @@