Only show toggle-all-day checkbox if a date is set

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-08-29 21:43:19 +02:00
parent dc6c44dcaf
commit 3aad8b60a4
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -523,7 +523,7 @@ export default {
+ (this.task.completed ? ('<br />' + t('tasks', 'Completed %s').replace('%s', moment(this.task.completedDate, 'YYYY-MM-DDTHH:mm:ss').calendar())) : '')
},
isAllDayPossible: function() {
return !this.task.calendar.readOnly || (this.task.due || this.task.start)
return !this.task.calendar.readOnly && (this.task.due || this.task.start)
},
priorityString: function() {
if (+this.task.priority > 5) {