diff --git a/client/src/components/header/HomeNavigation.vue b/client/src/components/header/HomeNavigation.vue
index ff28e2e7..868b911f 100644
--- a/client/src/components/header/HomeNavigation.vue
+++ b/client/src/components/header/HomeNavigation.vue
@@ -1,12 +1,22 @@
-
-
+
+
+
+
+
+ Dashboard
+
+
+
+
@@ -15,6 +25,6 @@ const { t } = useTranslation();
{{ t("general.title") }}
-
+
diff --git a/client/src/utils/route.ts b/client/src/utils/route.ts
index 0b0c9e26..2fcf97cc 100644
--- a/client/src/utils/route.ts
+++ b/client/src/utils/route.ts
@@ -1,3 +1,4 @@
+import { computed, ref } from "vue";
import { useRoute } from "vue-router";
export function useRouteLookups() {
@@ -7,11 +8,15 @@ export function useRouteLookups() {
return route.path.startsWith("/course/");
}
+ const isInCourse = computed(() => inCourse());
+
function inCockpit() {
const regex = new RegExp("/course/[^/]+/cockpit($|/)");
return regex.test(route.path);
}
+ const isInCockpit = computed(() => inCockpit());
+
function inLearningPath() {
const regex = new RegExp("/course/[^/]+/learn($|/)");
return regex.test(route.path);
@@ -39,7 +44,9 @@ export function useRouteLookups() {
return {
inMediaLibrary,
+ isInCourse,
inCockpit,
+ isInCockpit,
inLearningPath,
inCompetenceProfile,
inLearningMentor,