diff --git a/apps/dashboard/src/lib/components/Apps/index.svelte b/apps/dashboard/src/lib/components/Apps/index.svelte index 1dffafab..b474fe1a 100644 --- a/apps/dashboard/src/lib/components/Apps/index.svelte +++ b/apps/dashboard/src/lib/components/Apps/index.svelte @@ -17,6 +17,8 @@ import { browser } from '$app/environment'; import { course } from '$lib/components/Course/store'; import { lesson } from '$lib/components/Course/components/Lesson/store/lessons'; + import { currentOrg } from '$lib/utils/store/org'; + import { t } from '$lib/utils/functions/translations'; let appBarRef: HTMLDivElement; let appContentRef: HTMLDivElement; @@ -80,10 +82,18 @@
+
+
diff --git a/apps/dashboard/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte b/apps/dashboard/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte index 4a00ecea..a7921aef 100644 --- a/apps/dashboard/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte +++ b/apps/dashboard/src/routes/courses/[id]/lessons/[...lessonParams]/+page.svelte @@ -231,6 +231,12 @@ } function handleAppClick(appName: string) { + if ($apps.selectedApp === appName) { + $apps.selectedApp = undefined; + $apps.open = false; + return; + } + $apps.selectedApp = appName; $apps.open = true; } @@ -345,7 +351,7 @@ {isStudent} /> - {#if isStudent} + {/if} -
+
@@ -390,8 +396,9 @@ {/if}