Show events until end of month

This commit is contained in:
les
2021-03-08 14:38:47 +01:00
parent 9e2ea87691
commit c24eb3205b
2 changed files with 11 additions and 11 deletions

View File

@@ -126,8 +126,8 @@ export default {
this.date = ''
this.start = dayjs().year(year).month(month - 1).startOf('month').unix() // .startOf('week').unix()
}
// this.end = dayjs().year(year).month(month - 1).endOf('month').unix() // .endOf('week').unix()
this.end = null
// TODO: check if calendar view is double
this.end = dayjs().year(year).month(month).endOf('month').unix() // .endOf('week').unix()
this.updateEvents()
},
dayChange (day) {