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.
28 lines
572 B
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>
|
|
|