2019-05-25 12:08:54 +01:00
|
|
|
<template>
|
2019-05-25 16:21:05 +01:00
|
|
|
<div>
|
2019-05-25 12:08:54 +01:00
|
|
|
<h1 class="text-4xl font-semibold mb-2">Sessions</h1>
|
|
|
|
|
2019-06-05 00:41:50 +01:00
|
|
|
<div v-if="acceptedSessions.length" class="bg-white p-6 rounded-lg border">
|
2019-05-25 12:08:54 +01:00
|
|
|
<ul class="-mb-3">
|
2019-05-25 16:19:12 +01:00
|
|
|
<li v-for="{ attributes } in acceptedSessions" :key="attributes.drupal_internal__nid" class="mb-3">
|
|
|
|
{{ attributes.title }}
|
2019-05-25 12:08:54 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
sessions: {
|
2019-05-25 12:33:43 +01:00
|
|
|
type: Object,
|
2019-05-25 12:08:54 +01:00
|
|
|
required: true
|
|
|
|
}
|
2019-05-25 12:17:34 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
acceptedSessions: function () {
|
2019-06-04 21:17:53 +01:00
|
|
|
return this.sessions
|
|
|
|
.filter(session => this.isAccepted(session))
|
|
|
|
.value()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2019-06-05 00:41:40 +01:00
|
|
|
isAccepted: function ({ attributes }) {
|
|
|
|
return attributes.field_session_status === 'accepted'
|
2019-05-25 12:17:34 +01:00
|
|
|
}
|
2019-05-25 12:08:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|