CLASSROOMIO-T-11: Add settings to make certificate downloadable

This commit is contained in:
Rotimi Best
2023-07-26 21:51:52 +01:00
parent 964b5189c9
commit 5453ed3626
3 changed files with 7 additions and 7 deletions
@@ -33,7 +33,7 @@
*
* await updateCourse($course.id, undefined, {
description: $course.description,
auto_send_certificate: $course.auto_send_certificate
is_certificate_downloadable: $course.is_certificate_downloadable
});
* */
// set isSaving to false
@@ -78,13 +78,13 @@
</span>
<Toggle
labelText="Automatically send certificates on completion"
bind:toggled={$course.auto_send_certificate}
labelText="Allow students download certificate"
bind:toggled={$course.is_certificate_downloadable}
class="my-4"
size="sm"
>
<span slot="labelA" style="color: #161616">Automatic</span>
<span slot="labelB" style="color: green">Automatic</span>
<span slot="labelA" style="color: #161616">Student access</span>
<span slot="labelB" style="color: green">Student access</span>
</Toggle>
</div>
</section>
+1 -1
View File
@@ -10,7 +10,7 @@ export const course: Writable<Course> = writable({
description: '',
cost: 0,
currency: '',
auto_send_certificate: false,
is_certificate_downloadable: false,
metadata: {
requirements: '',
description: '',
+1 -1
View File
@@ -96,7 +96,7 @@ export interface Course {
currency?: string;
group?: Group;
organization?: Organization;
auto_send_certificate?: boolean;
is_certificate_downloadable?: boolean;
}
export interface Groupmember {