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 239c9f56..ab22ea98 100644 --- a/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte +++ b/apps/dashboard/src/lib/components/Course/components/Settings/index.svelte @@ -205,7 +205,7 @@ - + {$t('course.navItem.settings.cover_image')} @@ -235,18 +235,18 @@ - + - + {$t('course.navItem.settings.course_details')} @@ -274,8 +274,8 @@ hasUnsavedChanges = true; }} /> - - + + {$t('course.navItem.settings.link')} @@ -306,7 +306,7 @@ --> - + {$t('course.navItem.settings.order')} {$t('course.navItem.settings.drag')} @@ -319,7 +319,7 @@ /> - + {$t('course.navItem.settings.lesson_download')} {$t('course.navItem.settings.available')} @@ -341,7 +341,7 @@ {/if} - + {$t('course.navItem.settings.course_download')} {$t('course.navItem.settings.course_avail')} @@ -361,7 +361,7 @@ - + {$t('course.navItem.settings.type')} {$t('course.navItem.settings.course_type_desc')} @@ -386,7 +386,7 @@ - + {$t('course.navItem.settings.allow')} {$t('course.navItem.settings.access')} @@ -406,7 +406,7 @@ - + {$t('course.navItem.settings.publish')} {$t('course.navItem.settings.determines')} @@ -429,7 +429,7 @@ - + {$t('course.navItem.settings.delete')} {$t('course.navItem.settings.delete_text')} @@ -444,7 +444,7 @@ /> - + -{#if !isLMS && !isOnLandingPage} - - - - - - - -{/if} - - { + goto(courseUrl); + }} + on:keydown={(e) => { + if (e.key === 'Enter') { + goto(courseUrl); + } + }} + class="border-gray group relative w-full max-w-[320px] rounded border text-black dark:border-neutral-600" > + {#if !isLMS && !isOnLandingPage} + e.stopPropagation()} + > + + + + + + {/if} + @@ -158,7 +153,7 @@ {#if type} {@const tag = COURSE_TAG[type]} {tag.label} @@ -166,14 +161,14 @@ {/if} - {title} - + {title} + {description} @@ -181,7 +176,7 @@ {totalLessons} {$t('courses.course_card.lessons_number')} - + {#if isOnLandingPage} {#if !cost} @@ -198,10 +193,10 @@ {:else if isLMS} {#if !isExplore} - + {progressRate}% @@ -229,7 +224,7 @@ /> {:else if !isOnLandingPage} - + {totalStudents} {$t('courses.course_card.students')} @@ -237,7 +232,7 @@ {/if} - +
@@ -235,18 +235,18 @@
+
{$t('course.navItem.settings.link')} @@ -306,7 +306,7 @@ --> - + {$t('course.navItem.settings.order')} {$t('course.navItem.settings.drag')} @@ -319,7 +319,7 @@ /> - + {$t('course.navItem.settings.lesson_download')} {$t('course.navItem.settings.available')} @@ -341,7 +341,7 @@ {/if} - + {$t('course.navItem.settings.course_download')} {$t('course.navItem.settings.course_avail')} @@ -361,7 +361,7 @@ - + {$t('course.navItem.settings.type')} {$t('course.navItem.settings.course_type_desc')} @@ -386,7 +386,7 @@ - + {$t('course.navItem.settings.allow')} {$t('course.navItem.settings.access')} @@ -406,7 +406,7 @@ - + {$t('course.navItem.settings.publish')} {$t('course.navItem.settings.determines')} @@ -429,7 +429,7 @@ - + {$t('course.navItem.settings.delete')} {$t('course.navItem.settings.delete_text')} @@ -444,7 +444,7 @@ /> - + -{#if !isLMS && !isOnLandingPage} - - - - - - - -{/if} - - { + goto(courseUrl); + }} + on:keydown={(e) => { + if (e.key === 'Enter') { + goto(courseUrl); + } + }} + class="border-gray group relative w-full max-w-[320px] rounded border text-black dark:border-neutral-600" > + {#if !isLMS && !isOnLandingPage} + e.stopPropagation()} + > + + + + + + {/if} + @@ -158,7 +153,7 @@ {#if type} {@const tag = COURSE_TAG[type]} {tag.label} @@ -166,14 +161,14 @@ {/if} - {title} - + {title} + {description} @@ -181,7 +176,7 @@ {totalLessons} {$t('courses.course_card.lessons_number')} - + {#if isOnLandingPage} {#if !cost} @@ -198,10 +193,10 @@ {:else if isLMS} {#if !isExplore} - + {progressRate}% @@ -229,7 +224,7 @@ /> {:else if !isOnLandingPage} - + {totalStudents} {$t('courses.course_card.students')} @@ -237,7 +232,7 @@ {/if} - +
{$t('course.navItem.settings.drag')}
{$t('course.navItem.settings.available')}
{$t('course.navItem.settings.course_avail')}
{$t('course.navItem.settings.course_type_desc')}
{$t('course.navItem.settings.access')}
{$t('course.navItem.settings.determines')}
{$t('course.navItem.settings.delete_text')}
{description}
{#if isOnLandingPage} {#if !cost} @@ -198,10 +193,10 @@ {:else if isLMS} {#if !isExplore} - + {progressRate}% @@ -229,7 +224,7 @@ /> {:else if !isOnLandingPage} - + {totalStudents} {$t('courses.course_card.students')} @@ -237,7 +232,7 @@ {/if} - +
{progressRate}%
{totalStudents} {$t('courses.course_card.students')}