Add "media library" navigation link
This commit is contained in:
parent
4d4b6c5405
commit
38d753de42
|
|
@ -21,7 +21,8 @@ const breakpoints = useBreakpoints(breakpointsTailwind);
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const courseSessionsStore = useCourseSessionsStore();
|
const courseSessionsStore = useCourseSessionsStore();
|
||||||
const notificationsStore = useNotificationsStore();
|
const notificationsStore = useNotificationsStore();
|
||||||
const { inCockpit, inCompetenceProfile, inCourse, inLearningPath } = useRouteLookups();
|
const { inCockpit, inCompetenceProfile, inCourse, inLearningPath, inMediaLibrary } =
|
||||||
|
useRouteLookups();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
|
@ -135,6 +136,15 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-stretch justify-start space-x-8">
|
<div class="flex items-stretch justify-start space-x-8">
|
||||||
|
<router-link
|
||||||
|
v-if="inCourse() && courseSessionsStore.currentCourseSession"
|
||||||
|
:to="courseSessionsStore.currentCourseSession.media_library_url"
|
||||||
|
class="nav-item"
|
||||||
|
:class="{ 'nav-item--active': inMediaLibrary() }"
|
||||||
|
>
|
||||||
|
<it-icon-media-library class="h-8 w-8" />
|
||||||
|
</router-link>
|
||||||
|
|
||||||
<!-- Notification Bell & Menu -->
|
<!-- Notification Bell & Menu -->
|
||||||
<div v-if="userStore.loggedIn" class="nav-item leading-none">
|
<div v-if="userStore.loggedIn" class="nav-item leading-none">
|
||||||
<NotificationPopover>
|
<NotificationPopover>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue