From ff4299beb1365981807701f913dfcc5d15104c02 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 1 Mar 2020 17:20:25 +0100 Subject: [PATCH] Fix reminders not being shown on task detail view on mobile --- src/components/tasks/TaskDetailView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/tasks/TaskDetailView.vue b/src/components/tasks/TaskDetailView.vue index 01c892eeb..e7c0c558d 100644 --- a/src/components/tasks/TaskDetailView.vue +++ b/src/components/tasks/TaskDetailView.vue @@ -389,7 +389,10 @@ this.activeFields.percentDone = this.task.percentDone > 0 this.activeFields.startDate = this.task.startDate !== 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.labels = this.task.labels.length > 0 this.activeFields.attachments = this.task.attachments.length > 0