Only show cockpit and preview link when in CS
This commit is contained in:
parent
edfc561024
commit
b682c5561f
|
|
@ -90,12 +90,17 @@ const hasMediaLibraryMenu = computed(() =>
|
|||
)
|
||||
);
|
||||
|
||||
const hasCockpitMenu = computed(() =>
|
||||
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("expert-cockpit"))
|
||||
const hasCockpitMenu = computed(
|
||||
() =>
|
||||
Boolean(
|
||||
courseSessionsStore.currentCourseSession?.actions.includes("expert-cockpit")
|
||||
) && inCourse()
|
||||
);
|
||||
|
||||
const hasPreviewMenu = computed(() =>
|
||||
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("preview"))
|
||||
const hasPreviewMenu = computed(
|
||||
() =>
|
||||
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("preview")) &&
|
||||
inCourse()
|
||||
);
|
||||
|
||||
const hasAppointmentsMenu = computed(() =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue