From d19dddd8cdb7c4a01974be5f9c459bfa20c23415 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Wed, 11 Mar 2026 10:37:44 +0100 Subject: [PATCH] chore: conditional rendering of umami --- apps/dashboard/src/app.html | 7 ------- .../src/lib/components/Navigation/app.svelte | 6 +++--- .../src/lib/features/app/init.svelte.ts | 1 + .../sidebar/course-sidebar-navigation.svelte | 2 +- .../src/lib/features/lms/pages/dashboard.svelte | 3 ++- .../ui/sidebar/org-sidebar/org-switcher.svelte | 4 ++-- .../src/lib/utils/functions/appSetup.ts | 8 ++------ .../src/lib/utils/services/umami/index.ts | 16 ++++++++++++++++ .../dashboard/src/routes/org/[slug]/+page.svelte | 10 +++++----- apps/dashboard/svelte.config.js | 1 + 10 files changed, 33 insertions(+), 25 deletions(-) create mode 100644 apps/dashboard/src/lib/utils/services/umami/index.ts diff --git a/apps/dashboard/src/app.html b/apps/dashboard/src/app.html index a1ad400f..62a2b94d 100644 --- a/apps/dashboard/src/app.html +++ b/apps/dashboard/src/app.html @@ -9,13 +9,6 @@ - - %sveltekit.head% diff --git a/apps/dashboard/src/lib/components/Navigation/app.svelte b/apps/dashboard/src/lib/components/Navigation/app.svelte index 1fa5575a..e9f451e3 100644 --- a/apps/dashboard/src/lib/components/Navigation/app.svelte +++ b/apps/dashboard/src/lib/components/Navigation/app.svelte @@ -18,7 +18,7 @@ let { title = $bindable(''), navClass = '', isCoursePage = false }: Props = $props(); let coursesPath = $derived( - $globalStore.isOrgSite ? '/lms/mylearning' : isCoursePage ? `${$currentOrgPath}/courses` : $currentOrgPath + $globalStore.isStudent ? '/lms/mylearning' : isCoursePage ? `${$currentOrgPath}/courses` : $currentOrgPath ); @@ -27,13 +27,13 @@
{#if isCoursePage} {/if}