Add course with permission
This commit is contained in:
@@ -135,14 +135,16 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<section class="root">
|
<section class="root">
|
||||||
<!-- <PageNav title="Courses">
|
<PageNav title="All courses">
|
||||||
<div slot="widget">
|
<div slot="widget">
|
||||||
<PrimaryButton
|
{#if $profile.can_add_course}
|
||||||
label="New"
|
<PrimaryButton
|
||||||
onClick={() => ($createCourseModal.open = true)}
|
label="New"
|
||||||
/>
|
onClick={() => ($createCourseModal.open = true)}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</PageNav> -->
|
</PageNav>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
onClose={() => ($createCourseModal.open = false)}
|
onClose={() => ($createCourseModal.open = false)}
|
||||||
|
|||||||
Reference in New Issue
Block a user