Show selected course session on mobile
This commit is contained in:
parent
e5cbdc1620
commit
228bfd9c27
|
|
@ -33,14 +33,14 @@ const mentorTabTitle = computed(() =>
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="courseSessionsStore.currentCourseSession"
|
v-if="courseSessionsStore.currentCourseSession"
|
||||||
class="hidden space-x-8 px-10 lg:flex"
|
class="flex space-x-8 px-2 lg:px-10"
|
||||||
>
|
>
|
||||||
<SelectedCourseSession />
|
<SelectedCourseSession />
|
||||||
<router-link
|
<router-link
|
||||||
v-if="hasCockpitMenu"
|
v-if="hasCockpitMenu"
|
||||||
data-cy="navigation-cockpit-link"
|
data-cy="navigation-cockpit-link"
|
||||||
:to="getCockpitUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
:to="getCockpitUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
||||||
class="nav-item"
|
class="nav-item-no-mobile"
|
||||||
:class="{ 'nav-item--active': isInCockpit }"
|
:class="{ 'nav-item--active': isInCockpit }"
|
||||||
>
|
>
|
||||||
{{ t("cockpit.title") }}
|
{{ t("cockpit.title") }}
|
||||||
|
|
@ -51,7 +51,7 @@ const mentorTabTitle = computed(() =>
|
||||||
data-cy="navigation-preview-link"
|
data-cy="navigation-preview-link"
|
||||||
:to="getLearningPathUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
:to="getLearningPathUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="nav-item"
|
class="nav-item-no-mobile"
|
||||||
>
|
>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<span>{{ t("a.Vorschau Teilnehmer") }}</span>
|
<span>{{ t("a.Vorschau Teilnehmer") }}</span>
|
||||||
|
|
@ -62,7 +62,7 @@ const mentorTabTitle = computed(() =>
|
||||||
v-if="hasLearningPathMenu"
|
v-if="hasLearningPathMenu"
|
||||||
data-cy="navigation-learning-path-link"
|
data-cy="navigation-learning-path-link"
|
||||||
:to="getLearningPathUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
:to="getLearningPathUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
||||||
class="nav-item"
|
class="nav-item-no-mobile"
|
||||||
:class="{ 'nav-item--active': inLearningPath() }"
|
:class="{ 'nav-item--active': inLearningPath() }"
|
||||||
>
|
>
|
||||||
{{ t("general.learningPath") }}
|
{{ t("general.learningPath") }}
|
||||||
|
|
@ -72,7 +72,7 @@ const mentorTabTitle = computed(() =>
|
||||||
v-if="hasCompetenceNaviMenu"
|
v-if="hasCompetenceNaviMenu"
|
||||||
data-cy="navigation-competence-profile-link"
|
data-cy="navigation-competence-profile-link"
|
||||||
:to="getCompetenceNaviUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
:to="getCompetenceNaviUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
||||||
class="nav-item"
|
class="nav-item-no-mobile"
|
||||||
:class="{ 'nav-item--active': inCompetenceProfile() }"
|
:class="{ 'nav-item--active': inCompetenceProfile() }"
|
||||||
>
|
>
|
||||||
{{ t("competences.title") }}
|
{{ t("competences.title") }}
|
||||||
|
|
@ -82,7 +82,7 @@ const mentorTabTitle = computed(() =>
|
||||||
v-if="hasLearningMentor"
|
v-if="hasLearningMentor"
|
||||||
data-cy="navigation-learning-mentor-link"
|
data-cy="navigation-learning-mentor-link"
|
||||||
:to="getLearningMentorUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
:to="getLearningMentorUrl(courseSessionsStore.currentCourseSession.course.slug)"
|
||||||
class="nav-item"
|
class="nav-item-no-mobile"
|
||||||
:class="{ 'nav-item--active': inLearningMentor() }"
|
:class="{ 'nav-item--active': inLearningMentor() }"
|
||||||
>
|
>
|
||||||
{{ t(mentorTabTitle) }}
|
{{ t(mentorTabTitle) }}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const selectedCourseSessionTitle = computed(() => {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div v-if="hasSessionTitle" class="nav-item hidden items-center lg:inline-flex">
|
<div v-if="hasSessionTitle" class="nav-item inline-flex items-center lg:inline-flex">
|
||||||
<div class="" data-cy="current-course-session-title">
|
<div class="" data-cy="current-course-session-title">
|
||||||
{{ selectedCourseSessionTitle }}
|
{{ selectedCourseSessionTitle }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue