@@ -328,64 +357,11 @@
{:else if !isMaterialsEmpty($lesson.materials)}
- {#if $lesson.materials.videos.length}
-
- {#each $lesson.materials.videos as video}
-
- {#key video.link}
-
- {#if video.type === 'youtube'}
-
- {:else if video.metadata?.svid}
-
-
-
- {:else}
-
- {/if}
-
- {/key}
-
- {/each}
-
- {/if}
-
- {#if $lesson.materials.slide_url}
-
- {/if}
-
- {#if !isNoteEmpty($lesson.materials?.note)}
-
- {@html $lesson.materials.note}
-
- {/if}
+
+ {#each componentsToRender as Component, index}
+
+ {/each}
+
{:else}
@@ -399,16 +375,3 @@
{/if}
-
-
diff --git a/src/lib/components/Course/components/Navigation/NavIcons.svelte b/src/lib/components/Course/components/Navigation/NavIcons.svelte
index 5ec84a1f..6d99fe68 100644
--- a/src/lib/components/Course/components/Navigation/NavIcons.svelte
+++ b/src/lib/components/Course/components/Navigation/NavIcons.svelte
@@ -7,6 +7,7 @@
import ApplicationWeb from 'carbon-icons-svelte/lib/ApplicationWeb.svelte';
import Badge from 'carbon-icons-svelte/lib/Badge.svelte';
import IbmWatsonKnowledgeCatalog from 'carbon-icons-svelte/lib/IbmWatsonKnowledgeCatalog.svelte';
+ import Settings from 'carbon-icons-svelte/lib/Settings.svelte';
export let name = '';
@@ -27,4 +28,6 @@
{:else if name === 'Certificates'}
+{:else if name === 'Settings'}
+
{/if}
diff --git a/src/lib/components/Course/components/Navigation/index.svelte b/src/lib/components/Course/components/Navigation/index.svelte
index 0e507d06..9b6e6d02 100644
--- a/src/lib/components/Course/components/Navigation/index.svelte
+++ b/src/lib/components/Course/components/Navigation/index.svelte
@@ -5,20 +5,10 @@
import hotkeys from 'hotkeys-js';
import { browser } from '$app/environment';
import LockedIcon from 'carbon-icons-svelte/lib/Locked.svelte';
- // import ArrowLeftIcon from 'carbon-icons-svelte/lib/ArrowLeft.svelte';
import CheckmarkFilled from 'carbon-icons-svelte/lib/CheckmarkFilled.svelte';
- // import SettingsIcon from 'carbon-icons-svelte/lib/Settings.svelte';
- import ChevronLeftIcon from 'carbon-icons-svelte/lib/ChevronLeft.svelte';
- import ChevronRightIcon from 'carbon-icons-svelte/lib/ChevronRight.svelte';
import NavExpandable from './NavExpandable.svelte';
- import IconButton from '$lib/components/IconButton/index.svelte';
- // import Avatar from '$lib/components/Avatar/index.svelte';
import { getNavItemRoute, getLessonsRoute, getLectureNo } from '$lib/components/Course/function';
-
import TextChip from '$lib/components/Chip/Text.svelte';
- // import RoleBasedSecurity from '$lib/components/RoleBasedSecurity/index.svelte';
- import Settings from '../Settings/index.svelte';
- // import { settingsDialog } from '../Settings/store';
import { lessons } from '../Lesson/store/lessons';
import { course } from '$lib/components/Course/store';
import { updateCourse } from '$lib/utils/services/courses';
@@ -26,7 +16,6 @@
import { isMobile } from '$lib/utils/store/useMobile';
import { menu } from '$lib/components/Org/store';
- // export let lessonId;
export let path;
export let isStudent = null;
@@ -142,19 +131,25 @@
show() {
return !isStudent;
}
+ },
+ {
+ label: 'Settings',
+ to: getNavItemRoute($course.id, 'settings'),
+ hideSortIcon: true,
+ show() {
+ return !isStudent;
+ }
}
];
}
-
-