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/session/SessionCardSimple.vue

28 lines
572 B

<script setup>
import CourseCard from "../course/CourseCard.vue"
import { useSessionCard } from "../../composables/my_course_list/myCourseListSessions"
const props = defineProps({
session: {
type: Object,
required: true,
},
})
const { courses, isEnabled } = useSessionCard(props.session)
</script>
<template>
<div
v-for="(course, index) in courses"
:key="index"
style="max-width: 540px"
>
<CourseCard
:session="session"
:course="course"
:session-id="session.id"
:disabled="!isEnabled"
/>
</div>
</template>