diff --git a/frontend/src/composables/useCaseLawMenuItems.ts b/frontend/src/composables/useAdmVwvMenuItems.ts similarity index 97% rename from frontend/src/composables/useCaseLawMenuItems.ts rename to frontend/src/composables/useAdmVwvMenuItems.ts index c51f833..409482f 100644 --- a/frontend/src/composables/useCaseLawMenuItems.ts +++ b/frontend/src/composables/useAdmVwvMenuItems.ts @@ -2,7 +2,7 @@ import type { LocationQuery } from 'vue-router' // import { useInternalUser } from "@/composables/useInternalUser" import type MenuItem from '@/domain/menuItem' -export function useCaseLawMenuItems( +export function useAdmVwvMenuItems( documentNumber: string | undefined, routeQuery: LocationQuery, // Replace with the appropriate type for route query ): MenuItem[] { diff --git a/frontend/src/routes/RubrikenPage.vue b/frontend/src/routes/RubrikenPage.vue index e28438c..f92d775 100644 --- a/frontend/src/routes/RubrikenPage.vue +++ b/frontend/src/routes/RubrikenPage.vue @@ -11,7 +11,7 @@ import DocumentUnitInfoPanel from '@/components/DocumentUnitInfoPanel.vue' import NavbarSide from '@/components/NavbarSide.vue' // import ErrorPage from "@/components/PageError.vue" import SideToggle from '@/components/SideToggle.vue' -import { useCaseLawMenuItems } from '@/composables/useCaseLawMenuItems' +import { useAdmVwvMenuItems } from '@/composables/useAdmVwvMenuItems' // import useQuery from "@/composables/useQueryFromRoute" // import DocumentUnit from "@/domain/documentUnit" // import { ResponseError } from "@/services/httpClient" @@ -33,8 +33,8 @@ import { useCaseLawMenuItems } from '@/composables/useCaseLawMenuItems' // documentUnit: Ref // } const route = useRoute() -// const menuItems = useCaseLawMenuItems(props.documentNumber, route.query) -const menuItems = useCaseLawMenuItems('KSNR707', route.query) +// const menuItems = useAdmVwvMenuItems(props.documentNumber, route.query) +const menuItems = useAdmVwvMenuItems('KSNR707', route.query) // const { pushQueryToRoute } = useQuery() // const validationErrors = ref([])