This commit is contained in:
lesion
2022-06-01 12:33:28 +02:00
parent 67f2be6ac0
commit 94bb72e9e1

View File

@@ -74,14 +74,14 @@ export default {
} }
}, },
computed: { computed: {
...mapState(['settings', 'tags']), ...mapState(['settings']),
todayEvents () { todayEvents () {
const start = dayjs(this.value.from).startOf('day').unix() const start = dayjs(this.value.from).startOf('day').unix()
const end = dayjs(this.value.from).endOf('day').unix() const end = dayjs(this.value.from).endOf('day').unix()
return this.events.filter(e => e.start_datetime >= start && e.start_datetime <= end) return this.events.filter(e => e.start_datetime >= start && e.start_datetime <= end)
}, },
attributes () { attributes () {
return attributesFromEvents(this.events, this.tags) return attributesFromEvents(this.events)
}, },
fromDate () { fromDate () {
if (this.value.multidate) { if (this.value.multidate) {