CLASSROOMIO-T-28: Show apps only on individual lessons
Co-authored-by: Rotimi Best <rotimiibitoyeemma@gmail.com> Merge-request: CLASSROOMIO-MR-5 Merged-by: Digdippa Team <digdippa@gmail.com>
This commit is contained in:
committed by
Space Cloud
co-authored by
Rotimi Best
parent
cfeaa17846
commit
ae8f9ca222
@@ -21,6 +21,7 @@
|
||||
// import Footer from '../components/Footer/index.svelte';
|
||||
import Apps from '../components/Apps/index.svelte';
|
||||
import { handleAuthChange } from '../utils/functions/api';
|
||||
import showAppsSideBar from '../utils/functions/showAppsSideBar';
|
||||
import { user, profile } from '../utils/store/user';
|
||||
import { getSupabase } from '../utils/functions/supabase';
|
||||
import { isMobile } from '../utils/store/useMobile';
|
||||
@@ -210,7 +211,7 @@
|
||||
<slot />
|
||||
{/if}
|
||||
|
||||
{#if isCoursePage(path)}
|
||||
{#if showAppsSideBar(path)}
|
||||
<Apps />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
function showAppsSideBar(path) {
|
||||
return path.includes('/lessons/') && !path.includes('landingpage');
|
||||
}
|
||||
|
||||
export default showAppsSideBar;
|
||||
Reference in New Issue
Block a user