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(() =>
|
const hasCockpitMenu = computed(
|
||||||
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("expert-cockpit"))
|
() =>
|
||||||
|
Boolean(
|
||||||
|
courseSessionsStore.currentCourseSession?.actions.includes("expert-cockpit")
|
||||||
|
) && inCourse()
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasPreviewMenu = computed(() =>
|
const hasPreviewMenu = computed(
|
||||||
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("preview"))
|
() =>
|
||||||
|
Boolean(courseSessionsStore.currentCourseSession?.actions.includes("preview")) &&
|
||||||
|
inCourse()
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasAppointmentsMenu = computed(() =>
|
const hasAppointmentsMenu = computed(() =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue