From 5453ed362689480480ca418bd91fd6a3ee0f2a21 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Wed, 26 Jul 2023 21:51:52 +0100 Subject: [PATCH] CLASSROOMIO-T-11: Add settings to make certificate downloadable --- .../Course/components/Ceritficate/Design.svelte | 10 +++++----- src/components/Course/store.ts | 2 +- src/utils/types/index.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Course/components/Ceritficate/Design.svelte b/src/components/Course/components/Ceritficate/Design.svelte index ca6ab539..7ecc6372 100644 --- a/src/components/Course/components/Ceritficate/Design.svelte +++ b/src/components/Course/components/Ceritficate/Design.svelte @@ -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 @@ - Automatic - Automatic + Student access + Student access diff --git a/src/components/Course/store.ts b/src/components/Course/store.ts index 0bbd11f6..54431892 100644 --- a/src/components/Course/store.ts +++ b/src/components/Course/store.ts @@ -10,7 +10,7 @@ export const course: Writable = writable({ description: '', cost: 0, currency: '', - auto_send_certificate: false, + is_certificate_downloadable: false, metadata: { requirements: '', description: '', diff --git a/src/utils/types/index.ts b/src/utils/types/index.ts index 84c0731b..e613593f 100644 --- a/src/utils/types/index.ts +++ b/src/utils/types/index.ts @@ -96,7 +96,7 @@ export interface Course { currency?: string; group?: Group; organization?: Organization; - auto_send_certificate?: boolean; + is_certificate_downloadable?: boolean; } export interface Groupmember {