decoupling-drupal-vuejs/vuejs/src/components/AcceptedSessionsList.vue

25 lines
469 B
Vue
Raw Normal View History

<template>
2019-05-25 16:21:05 +01:00
<div>
2019-06-05 09:15:31 +01:00
<h1 class="text-4xl mb-2">Sessions</h1>
<div v-if="sessions.length" class="bg-white p-6 rounded-lg border">
<ul class="-mb-3">
<li v-for="{ attributes } in sessions" :key="attributes.drupal_internal__nid" class="mb-3">
2019-05-25 16:19:12 +01:00
{{ attributes.title }}
</li>
</ul>
</div>
</div>
</template>
<script>
export default {
props: {
sessions: {
2019-05-25 12:33:43 +01:00
type: Object,
required: true
}
}
}
</script>