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