Better reminders #308

Merged
konrad merged 37 commits from feature/better-reminders into master 2020-11-28 13:59:28 +00:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 8d056c6a81 - Show all commits

View File

@ -159,7 +159,14 @@ export default {
this.show = false
},
setDate(date) {
console.log(date)
if (this.date === null) {
this.date = new Date()
}
const interval = calculateDayInterval(date)
const newDate = new Date()
newDate.setDate(newDate.getDate() + interval)
this.date = newDate
},
getDayIntervalFromString(date) {
return calculateDayInterval(date)