Fix reminders not being shown on task detail view on mobile
This commit is contained in:
parent
fec60578ab
commit
ff4299beb1
1 changed files with 4 additions and 1 deletions
|
@ -389,7 +389,10 @@
|
||||||
this.activeFields.percentDone = this.task.percentDone > 0
|
this.activeFields.percentDone = this.task.percentDone > 0
|
||||||
this.activeFields.startDate = this.task.startDate !== null
|
this.activeFields.startDate = this.task.startDate !== null
|
||||||
this.activeFields.endDate = this.task.endDate !== null
|
this.activeFields.endDate = this.task.endDate !== null
|
||||||
this.activeFields.reminders = this.task.reminderDates.length > 1
|
// On chrome, reminderDates.length holds the actual number of reminders that are not null.
|
||||||
|
// Unlike on desktop where it holds all reminders, including the ones which are null.
|
||||||
|
// This causes the reminders to dissapear entierly when only one is set and the user is on mobile.
|
||||||
|
this.activeFields.reminders = this.task.reminderDates.length > 1 || (window.innerWidth < 769 && this.task.reminderDates.length > 0)
|
||||||
this.activeFields.repeatAfter = this.task.repeatAfter.amount > 0
|
this.activeFields.repeatAfter = this.task.repeatAfter.amount > 0
|
||||||
this.activeFields.labels = this.task.labels.length > 0
|
this.activeFields.labels = this.task.labels.length > 0
|
||||||
this.activeFields.attachments = this.task.attachments.length > 0
|
this.activeFields.attachments = this.task.attachments.length > 0
|
||||||
|
|
Loading…
Reference in a new issue