CLASSROOMIO-T-47: Update nav for lms only
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto, stores } from '@sapper/app';
|
import { goto, stores } from '@sapper/app';
|
||||||
import { user } from '../../utils/store/user';
|
import { user } from '../../utils/store/user';
|
||||||
|
import { appStore } from '../../utils/store/app';
|
||||||
import { isCoursePage } from '../../utils/functions/app';
|
import { isCoursePage } from '../../utils/functions/app';
|
||||||
import PrimaryButton from '../PrimaryButton/index.svelte';
|
import PrimaryButton from '../PrimaryButton/index.svelte';
|
||||||
import { VARIANTS } from '../PrimaryButton/constants';
|
import { VARIANTS } from '../PrimaryButton/constants';
|
||||||
@@ -86,7 +87,9 @@
|
|||||||
<span class="flex-grow" />
|
<span class="flex-grow" />
|
||||||
|
|
||||||
{#if $user.isLoggedIn}
|
{#if $user.isLoggedIn}
|
||||||
|
{#if $appStore.isStudentDomain}
|
||||||
<li><a class="block" href="/lms"> Go to LMS </a></li>
|
<li><a class="block" href="/lms"> Go to LMS </a></li>
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<li>
|
<li>
|
||||||
{#if !disableLogin}
|
{#if !disableLogin}
|
||||||
|
|||||||
Reference in New Issue
Block a user