From 202fd304452a66cb0b01e7516d9ed032bba1c536 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 28 Jun 2026 21:41:53 +0100 Subject: [PATCH] fix: enable adding video from library to another lesson --- .../lesson/lesson-settings-tab.svelte | 5 +- .../lesson/video/library-video.svelte | 68 +++++++++++++------ .../media/api/media-manager.svelte.ts | 6 +- .../media/utils/media-manager-utils.ts | 18 ++++- .../src/lib/utils/translations/da.json | 3 +- .../src/lib/utils/translations/de.json | 3 +- .../src/lib/utils/translations/en.json | 1 + .../src/lib/utils/translations/es.json | 3 +- .../src/lib/utils/translations/fr.json | 3 +- .../src/lib/utils/translations/hi.json | 3 +- .../src/lib/utils/translations/pl.json | 3 +- .../src/lib/utils/translations/pt.json | 3 +- .../src/lib/utils/translations/ru.json | 3 +- .../src/lib/utils/translations/vi.json | 3 +- 14 files changed, 87 insertions(+), 38 deletions(-) diff --git a/apps/dashboard/src/lib/features/course/components/lesson/lesson-settings-tab.svelte b/apps/dashboard/src/lib/features/course/components/lesson/lesson-settings-tab.svelte index 8ee8f596..4308b9a3 100644 --- a/apps/dashboard/src/lib/features/course/components/lesson/lesson-settings-tab.svelte +++ b/apps/dashboard/src/lib/features/course/components/lesson/lesson-settings-tab.svelte @@ -12,7 +12,7 @@ import { classroomio } from '$lib/utils/services/api'; import { t } from '$lib/utils/functions/translations'; import { getBrowserTimezone, instantToZonedWallClock, zonedWallClockToInstant } from '$lib/utils/functions/date'; - import { getVideoTitle, isHlsUploadVideo, type LessonVideo } from './video/video-card-utils'; + import { getVideoTitle, type LessonVideo } from './video/video-card-utils'; type LessonCompletionPolicy = 'manual' | 'video_watch' | 'none'; @@ -328,9 +328,6 @@ /> {getVideoTitle(video, index)} - {#if isHlsUploadVideo(video)} - (HLS) - {/if} {/each} diff --git a/apps/dashboard/src/lib/features/course/components/lesson/video/library-video.svelte b/apps/dashboard/src/lib/features/course/components/lesson/video/library-video.svelte index 827fdd75..253629c0 100644 --- a/apps/dashboard/src/lib/features/course/components/lesson/video/library-video.svelte +++ b/apps/dashboard/src/lib/features/course/components/lesson/video/library-video.svelte @@ -1,10 +1,15 @@