CLASSROOMIO-T-105: Delete video
CLASSROOMIO-T-105: Delete video CLASSROOMIO-T-105: Update color of header to blue 700 Support up to 50 MB of file upload Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com> Merge-request: CLASSROOMIO-MR-46 Merged-by: Best Admin <best@digdippa.com>
This commit is contained in:
committed by
Space Cloud
co-authored by
Rotimi Best
parent
31de49f4bb
commit
8e6ff9cfe1
@@ -121,7 +121,7 @@
|
|||||||
Oops 😬, couldn’t upload video
|
Oops 😬, couldn’t upload video
|
||||||
</h3>
|
</h3>
|
||||||
<p class="text-center text-xs font-normal text-[#ADADAD]">
|
<p class="text-center text-xs font-normal text-[#ADADAD]">
|
||||||
Sorry we video wasn’t uploaded. The file size is too big,<br /> maximum size is 20 MB. Try again!
|
Sorry we video wasn’t uploaded. The file size is too big,<br /> maximum size is 50 MB. Try again!
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
<PrimaryButton label="Try again" onClick={() => fileInput?.click()} />
|
<PrimaryButton label="Try again" onClick={() => fileInput?.click()} />
|
||||||
|
|||||||
@@ -54,12 +54,14 @@
|
|||||||
// problem: after we save an uploaded video,
|
// problem: after we save an uploaded video,
|
||||||
async function saveLesson() {
|
async function saveLesson() {
|
||||||
const { data } = await fetchLesson(lessonId);
|
const { data } = await fetchLesson(lessonId);
|
||||||
const materials = merge(data, $lesson.materials);
|
if (data?.videos?.length === $lesson.materials.videos.length) {
|
||||||
|
const materials = merge(data, $lesson.materials);
|
||||||
|
|
||||||
lesson.update((l) => ({
|
lesson.update((l) => ({
|
||||||
...l,
|
...l,
|
||||||
materials
|
materials
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
handleUpdateLessonMaterials($lesson, lessonId);
|
handleUpdateLessonMaterials($lesson, lessonId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<nav class="{navClass} flex w-full p-2 md:px-6 bg-blue-500">
|
<nav class="{navClass} flex w-full p-2 md:px-6 bg-blue-700">
|
||||||
<ul class="flex w-full items-center">
|
<ul class="flex w-full items-center">
|
||||||
<div class="flex items-center text-white">
|
<div class="flex items-center text-white">
|
||||||
{#if isCoursePage}
|
{#if isCoursePage}
|
||||||
|
|||||||
Reference in New Issue
Block a user