You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
559 B
23 lines
559 B
<template>
|
|
<div class="flex justify-between items-center">
|
|
<h2 v-t="'My courses'" />
|
|
<Button
|
|
v-if="isTeacher"
|
|
:label="t('Course')"
|
|
class="p-button-secondary hidden md:inline-flex"
|
|
icon="pi pi-plus"
|
|
/>
|
|
</div>
|
|
<hr>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import Button from 'primevue/button';
|
|
import { useI18n } from 'vue-i18n';
|
|
import { storeToRefs } from "pinia"
|
|
import { useSecurityStore } from "../store/securityStore"
|
|
|
|
const { t } = useI18n();
|
|
const { isTeacher } = storeToRefs(useSecurityStore())
|
|
</script>
|
|
|