diff --git a/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte b/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte index 7915bb0e2..0594ad33f 100644 --- a/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte +++ b/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte @@ -22,6 +22,10 @@ import UploadWidget from '$lib/components/UploadWidget/index.svelte'; import { handleOpenWidget } from '$lib/components/CourseLandingPage/store'; + import { Restart } from 'carbon-icons-svelte'; + import IconButton from '$lib/components/IconButton/index.svelte'; + import generateSlug from '$lib/utils/functions/generateSlug'; + let isSaving = false; let isLoading = false; let isDeleting = false; @@ -137,7 +141,8 @@ grading: grading, lessonDownload: lesson_download, allowNewStudent: allow_new_students - } + }, + slug: $course.slug }); $course.title = course_title; @@ -169,11 +174,15 @@ grading: !!course.metadata.grading, lesson_download: !!course.metadata.lessonDownload, is_published: !!course.is_published, - allow_new_students: course.metadata.allowNewStudent + allow_new_students: course.metadata.allowNewStudent, }; } } + const generateNewCourseLink = () => { + $course.slug = generateSlug($course.title); + } + $: $settings.course_description = $course.description; $: $settings.course_title = $course.title; @@ -239,7 +248,12 @@ errorMessage={errors.description} />
-

Course Link

+

+ Course Link + + + +

{#if $course.slug} {:else}