taskManager & recurrent events generation

This commit is contained in:
les
2020-01-30 12:37:19 +01:00
parent 0d83a48452
commit 6ad7fd1d79
21 changed files with 366 additions and 291 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug">
nuxt-link.event(:to='`/event/${link}`' :class='{ withImg: event.image_path }')
nuxt-link.event(:to='`/event/${event.id}`' :class='{ withImg: event.image_path }')
//- image
el-image(v-if='showImage && event.image_path' lazy :src='`/media/thumb/${event.image_path}`')
@@ -24,7 +24,7 @@ import { mapState } from 'vuex'
export default {
props: {
event: Object,
event: { type: Object, default: () => ({}) },
showTags: {
type: Boolean,
default: true
@@ -35,16 +35,7 @@ export default {
}
},
computed: {
...mapState(['settings']),
date () {
return new Date(this.event.start_datetime).getDate()
},
link () {
if (this.event.recurrent) {
return `${this.event.id}_${this.event.start_datetime}`
}
return this.event.id
}
...mapState(['settings'])
}
}
</script>