diff --git a/client/src/pages/competence/CompetenceParentPage.vue b/client/src/pages/competence/CompetenceParentPage.vue index aeffbddf..720bf287 100644 --- a/client/src/pages/competence/CompetenceParentPage.vue +++ b/client/src/pages/competence/CompetenceParentPage.vue @@ -1,15 +1,18 @@ - + + + + Übersicht + + + + + + + + {{ item.name }} + + + + + + + - + {{ $t("a.Übersicht") }} @@ -55,10 +107,7 @@ onMounted(async () => { class="border-t-2 border-t-transparent lg:ml-12" :class="{ 'border-b-2 border-b-blue-900': routeInCompetenceCertificate() }" > - + {{ $t("a.Kompetenznachweise") }} @@ -69,7 +118,7 @@ onMounted(async () => { }" > @@ -84,10 +133,7 @@ onMounted(async () => { class="border-t-2 border-t-transparent lg:ml-12" :class="{ 'border-b-2 border-b-blue-900': routeInActionCompetences() }" > - + {{ $t("a.Handlungskompetenzen") }} diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 291e1b53..9e6af33f 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -13,6 +13,12 @@ import { import { addToHistory, setLastNavigationWasPush } from "@/router/history"; import { onboardingRedirect } from "@/router/onboarding"; import { createRouter, createWebHistory } from "vue-router"; +import { + CERTIFICATES_ROUTE, + COMPETENCE_ROUTE, + COMPETENCES_ROUTE, + SELF_EVALUATION_ROUTE, +} from "./names"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -107,10 +113,12 @@ const router = createRouter({ { path: "", props: true, + name: COMPETENCE_ROUTE, component: () => import("@/pages/competence/CompetenceIndexPage.vue"), }, { path: "certificates", + name: CERTIFICATES_ROUTE, props: true, component: () => import("@/pages/competence/CompetenceCertificateListPage.vue"), @@ -122,7 +130,7 @@ const router = createRouter({ import("@/pages/competence/CompetenceCertificateDetailPage.vue"), }, { - name: "selfEvaluationAndFeedback", + name: SELF_EVALUATION_ROUTE, path: "self-evaluation-and-feedback", props: true, component: () => @@ -130,6 +138,7 @@ const router = createRouter({ }, { path: "competences", + name: COMPETENCES_ROUTE, props: true, component: () => import("@/pages/competence/ActionCompetenceListPage.vue"), }, diff --git a/client/src/router/names.ts b/client/src/router/names.ts new file mode 100644 index 00000000..8e41a5c0 --- /dev/null +++ b/client/src/router/names.ts @@ -0,0 +1,4 @@ +export const COMPETENCE_ROUTE = "competence"; +export const CERTIFICATES_ROUTE = "certificates"; +export const SELF_EVALUATION_ROUTE = "selfEvaluationAndFeedback"; +export const COMPETENCES_ROUTE = "competences";