CLASSROOMIO-T-75:Made the certificates downloadable for students when unlocked by their tutor

This commit is contained in:
emmanuel
2023-07-31 14:38:13 +01:00
parent cddbb3b0d7
commit f42bf2dde2
4 changed files with 96 additions and 2 deletions
+8 -2
View File
@@ -20,7 +20,7 @@
// import { issueCertificateModal } from '../../../components/Course/components/Ceritficate/store';
// import { Tabs, Tab } from 'carbon-components-svelte';
// import TabContent from 'carbon-components-svelte/src/Tabs/TabContent.svelte';
import StudentCertificate from '../../../components/Course/components/Ceritficate/StudentCertificate/Index.svelte';
export let courseId: string = '';
let isStudent = false;
@@ -48,7 +48,13 @@
</PageNav>
<PageBody className="w-full mx-0" padding="px-3">
<Design />
<RoleBasedSecurity allowedRoles={[1, 2]}>
<Design />
</RoleBasedSecurity>
<RoleBasedSecurity allowedRoles={[3]}>
<StudentCertificate />
</RoleBasedSecurity>
<!-- <Tabs autoWidth class="border-b border-gray-200">
<Tab label="Design" />
<Tab label="Reports" />