chore : added comments for better code readability
This commit is contained in:
parent
4009bb2111
commit
674b59e0df
1 changed files with 5 additions and 4 deletions
|
@ -5,15 +5,17 @@
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
|
// instantiate variables to use in html to render right
|
||||||
|
// links and content dependent on the role (student or teacher)
|
||||||
const isTeacher = route.path.includes("teacher");
|
const isTeacher = route.path.includes("teacher");
|
||||||
|
const userId = computed(() => route.params.id as string);
|
||||||
|
|
||||||
const role = isTeacher ? "teacher" : "student";
|
const role = isTeacher ? "teacher" : "student";
|
||||||
const name = "Kurt Cobain"; //TODO: naam opvragen
|
const name = "Kurt Cobain";
|
||||||
const initials = name
|
const initials = name
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map((n) => n[0])
|
.map((n) => n[0])
|
||||||
.join("");
|
.join("");
|
||||||
|
|
||||||
const userId = computed(() => route.params.id as string);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -61,7 +63,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<li>
|
<li>
|
||||||
<!-- TODO: log out when clicked -->
|
|
||||||
<router-link :to="`/login`">
|
<router-link :to="`/login`">
|
||||||
<v-icon
|
<v-icon
|
||||||
icon="mdi-logout"
|
icon="mdi-logout"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue