diff --git a/frontend/src/stores/nodes.ts b/frontend/src/stores/nodes.ts index a6a47bc..7143ed2 100644 --- a/frontend/src/stores/nodes.ts +++ b/frontend/src/stores/nodes.ts @@ -3,7 +3,7 @@ import { type DomainSpecificNodeResponse, isDomainSpecificNodeResponse, type NodesFilter, - NodeSortField, + NodeSortFieldEnum, SortDirection, } from "@/types"; import { internalApi } from "@/utils/Api"; @@ -14,7 +14,7 @@ interface NodesStoreState { nodesPerPage: number; totalNodes: number; sortDirection: SortDirection; - sortField: NodeSortField; + sortField: NodeSortFieldEnum; } export const useNodesStore = defineStore({ @@ -26,7 +26,7 @@ export const useNodesStore = defineStore({ nodesPerPage: 20, totalNodes: 0, sortDirection: SortDirection.ASCENDING, - sortField: NodeSortField.HOSTNAME, + sortField: NodeSortFieldEnum.HOSTNAME, }; }, getters: { @@ -51,7 +51,7 @@ export const useNodesStore = defineStore({ page: number, nodesPerPage: number, sortDirection: SortDirection, - sortField: NodeSortField, + sortField: NodeSortFieldEnum, filter: NodesFilter, searchTerm?: string ): Promise { @@ -63,7 +63,7 @@ export const useNodesStore = defineStore({ } const result = await internalApi.getPagedList< DomainSpecificNodeResponse, - NodeSortField + NodeSortFieldEnum >( "nodes", isDomainSpecificNodeResponse, diff --git a/frontend/src/views/AdminNodesView.vue b/frontend/src/views/AdminNodesView.vue index d38d6d1..ffae358 100644 --- a/frontend/src/views/AdminNodesView.vue +++ b/frontend/src/views/AdminNodesView.vue @@ -10,7 +10,8 @@ import type { import { ButtonSize, ComponentVariant, - NodeSortField, + type NodeSortField, + NodeSortFieldEnum, SortDirection, } from "@/types"; import ListPager from "@/components/ListPager.vue"; @@ -41,7 +42,7 @@ const props = defineProps({ }, sortField: { type: String as PropType, - default: NodeSortField.HOSTNAME, + default: NodeSortFieldEnum.HOSTNAME, }, }); @@ -196,7 +197,7 @@ watch(props, async () => { { Name { Besitzer*in { E-Mail { Token { MAC { VPN { Site { Domäne { GPS { Status