reuse v-calendar

This commit is contained in:
les 2020-12-04 17:28:11 +01:00
parent 830d77976a
commit f7d0f40850
2 changed files with 8 additions and 19 deletions

View file

@ -56,18 +56,6 @@ v-container
v-btn.ml-2(large icon v-on='on' color='primary'
:href='`/api/event/${event.id}.ics`')
v-icon mdi-calendar-export
//- v-list
v-list-item(link)
v-list-item-content.primary--text.text-uppercase(
v-clipboard:success='copyLink'
v-clipboard:copy='`${settings.baseurl}/event/${event.id}`') {{$t('common.copy_link')}}
v-list-item(link)
v-list-item-content.primary--text.text-uppercase(@click='showEmbed=true' text color='primary') {{$t('common.embed')}}
v-list-item(link :href='`/api/event/${event.id}.ics`')
v-list-item-content.primary--text.text-uppercase
//- v-btn(nuxt block link :href='`/api/event/${event.id}.ics`' text color='primary') {{$t('common.add_to_calendar')}}
.p-description.text-h6(v-html='event.description')
v-chip.p-category.ml-1(v-for='tag in event.tags' color='primary'

View file

@ -1,7 +1,8 @@
// import Vue from 'vue'
// import VCalendar from 'v-calendar'
// export default () => {
// Vue.use(VCalendar, {
// firstDayOfWeek: 2
// })
// }
import Vue from 'vue'
import VCalendar from 'v-calendar'
export default () => {
Vue.use(VCalendar, {
// why is that ?!
firstDayOfWeek: 2
})
}