Chamilo is a learning management system focused on ease of use and accessibility
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.
chamilo-lms/assets/vue/components/layout/SectionHeader.vue

32 lines
592 B

<script setup>
import { useCidReqStore } from "../../store/cidReq"
import { storeToRefs } from "pinia"
import StudentViewButton from "../StudentViewButton.vue"
defineProps({
title: {
type: String,
required: true,
},
})
const cidReqStore = useCidReqStore()
const { course } = storeToRefs(cidReqStore)
</script>
<template>
<div class="section-header section-header--h2">
<h2
class="section-header__title"
v-text="title"
/>
<div class="section-header__actions">
<StudentViewButton v-if="course" />
<slot />
</div>
</div>
</template>