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, { * await updateCourse($course.id, undefined, {
description: $course.description, description: $course.description,
auto_send_certificate: $course.auto_send_certificate is_certificate_downloadable: $course.is_certificate_downloadable
}); });
* */ * */
// set isSaving to false // set isSaving to false
@@ -78,13 +78,13 @@
</span> </span>
<Toggle <Toggle
labelText="Automatically send certificates on completion" labelText="Allow students download certificate"
bind:toggled={$course.auto_send_certificate} bind:toggled={$course.is_certificate_downloadable}
class="my-4" class="my-4"
size="sm" size="sm"
> >
<span slot="labelA" style="color: #161616">Automatic</span> <span slot="labelA" style="color: #161616">Student access</span>
<span slot="labelB" style="color: green">Automatic</span> <span slot="labelB" style="color: green">Student access</span>
</Toggle> </Toggle>
</div> </div>
</section> </section>
+1 -1
View File
@@ -10,7 +10,7 @@ export const course: Writable<Course> = writable({
description: '', description: '',
cost: 0, cost: 0,
currency: '', currency: '',
auto_send_certificate: false, is_certificate_downloadable: false,
metadata: { metadata: {
requirements: '', requirements: '',
description: '', description: '',
+1 -1
View File
@@ -96,7 +96,7 @@ export interface Course {
currency?: string; currency?: string;
group?: Group; group?: Group;
organization?: Organization; organization?: Organization;
auto_send_certificate?: boolean; is_certificate_downloadable?: boolean;
} }
export interface Groupmember { export interface Groupmember {