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/views/user/sessions/SessionCardList.vue

46 lines
732 B

<template>
<div
v-for="card in sessions"
:key="card.session.id"
>
<SessionCard
:sessionRelUser="card"
/>
</div>
</template>
<script>
import SessionCard from './SessionCard.vue';
export default {
name: 'SessionCardList',
components: {
SessionCard
},
props: {
sessions: Array,
},
data() {
return {
deck: false
};
},
methods: {
isList: function (){
if (!this.deck) {
return 'primary';
}
return 'secondary';
},
isDeck: function (){
if (this.deck) {
return 'primary';
}
return 'secondary';
},
changeLayout: function () {
this.deck = !this.deck;
},
}
};
</script>