diff --git a/@xen-orchestra/lite/src/components/pool/network/PoolNetworksTable.vue b/@xen-orchestra/lite/src/components/pool/network/PoolNetworksTable.vue index 316750c75b1..2e2cfeaef8c 100644 --- a/@xen-orchestra/lite/src/components/pool/network/PoolNetworksTable.vue +++ b/@xen-orchestra/lite/src/components/pool/network/PoolNetworksTable.vue @@ -100,6 +100,7 @@ import UiCardSpinner from '@/components/ui/UiCardSpinner.vue' import useMultiSelect from '@/composables/multi-select.composable' import type { XenApiNetwork } from '@/libs/xen-api/xen-api.types' +import type { Status } from '@/types/status' import VtsConnectionStatus from '@core/components/connection-status/VtsConnectionStatus.vue' import VtsIcon from '@core/components/icon/VtsIcon.vue' import ColumnTitle from '@core/components/table/ColumnTitle.vue' @@ -128,8 +129,6 @@ import { } from '@fortawesome/free-solid-svg-icons' import { computed, ref } from 'vue' -export type Status = 'connected' | 'disconnected' | 'partially-connected' - const { networks, isReady } = defineProps<{ networks: { network: XenApiNetwork diff --git a/@xen-orchestra/lite/src/stores/xen-api/pif.store.ts b/@xen-orchestra/lite/src/stores/xen-api/pif.store.ts index 70281fbb18a..5c013a85186 100644 --- a/@xen-orchestra/lite/src/stores/xen-api/pif.store.ts +++ b/@xen-orchestra/lite/src/stores/xen-api/pif.store.ts @@ -1,6 +1,6 @@ -import type { Status } from '@/components/pool/network/PoolNetworksTable.vue' import type { XenApiPif } from '@/libs/xen-api/xen-api.types' import { createXapiStoreConfig } from '@/stores/xen-api/create-xapi-store-config' +import type { Status } from '@/types/status' import { createSubscribableStoreContext } from '@core/utils/create-subscribable-store-context.util' import { defineStore } from 'pinia' diff --git a/@xen-orchestra/lite/src/types/status.ts b/@xen-orchestra/lite/src/types/status.ts new file mode 100644 index 00000000000..86338b58927 --- /dev/null +++ b/@xen-orchestra/lite/src/types/status.ts @@ -0,0 +1 @@ +export type Status = 'connected' | 'disconnected' | 'partially-connected'