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.
46 lines
726 B
46 lines
726 B
<template>
|
|
<div
|
|
v-for="session in sessions"
|
|
:key="session.id"
|
|
>
|
|
<SessionCard
|
|
:session="session"
|
|
/>
|
|
</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>
|
|
|