feat: show mark as complete only for students
This commit is contained in:
@@ -298,6 +298,7 @@
|
|||||||
className="overflow-x-hidden"
|
className="overflow-x-hidden"
|
||||||
>
|
>
|
||||||
<Materials lessonId={data.lessonId} {mode} {prevMode} {toggleMode} bind:isSaving />
|
<Materials lessonId={data.lessonId} {mode} {prevMode} {toggleMode} bind:isSaving />
|
||||||
|
{#if isStudent}
|
||||||
<div class="w-full hidden lg:flex flex-row-reverse mt-10">
|
<div class="w-full hidden lg:flex flex-row-reverse mt-10">
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
onClick={() => markLessonComplete(data.lessonId)}
|
onClick={() => markLessonComplete(data.lessonId)}
|
||||||
@@ -314,6 +315,7 @@
|
|||||||
Mark as {isLessonComplete ? 'Incomplete' : 'Complete'}
|
Mark as {isLessonComplete ? 'Incomplete' : 'Complete'}
|
||||||
</PrimaryButton>
|
</PrimaryButton>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
</PageBody>
|
</PageBody>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user