feat: restrict certain UI elements for students in course sidebar and lesson pages
This commit is contained in:
@@ -84,7 +84,8 @@
|
||||
already_joined: result.data.alreadyJoined
|
||||
});
|
||||
|
||||
goto(result.data.redirectTo || '/lms');
|
||||
// need to force page reload to avoid cache issues
|
||||
window.location.href = result.data.redirectTo || '/lms';
|
||||
} finally {
|
||||
loading = false;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
</script>
|
||||
|
||||
<Page.Root class="mx-auto flex w-[calc(100vw-var(--sidebar-width))]!">
|
||||
<Page.Root class="mx-auto flex w-[calc(95vw-var(--sidebar-width))]!">
|
||||
<Page.Header>
|
||||
<Page.HeaderContent>
|
||||
<Page.Title>
|
||||
|
||||
Reference in New Issue
Block a user