feat: enforce rule of orgsite name min 5 char (#184)

This commit is contained in:
Rotimi Best
2024-02-28 02:51:42 +01:00
committed by GitHub
parent b9388615a6
commit 474e83c3d9
3 changed files with 41 additions and 18 deletions
@@ -86,6 +86,7 @@
});
$: video = get(courseData, 'metadata.videoUrl');
$: allowNewStudent = get(courseData, 'metadata.allowNewStudent');
$: bannerImage = get(courseData, 'logo');
$: lessons = get(courseData, 'lessons', []);
$: instructor = get(courseData, 'metadata.instructor') || {};
@@ -120,7 +121,7 @@
if (editMode) return;
startCoursePayment = true;
}}
isDisabled={!courseData.metadata.allowNewStudent}
isDisabled={!allowNewStudent}
/>
{#if $handleOpenWidget.open}
<UploadWidget bind:imageURL={$course.logo} />