Fix notifications not using task title

This commit is contained in:
kolaente 2020-07-01 08:39:31 +02:00
parent a9e8a3969b
commit 7800a25544
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -182,7 +182,7 @@ export default class TaskModel extends AbstractModel {
// Register the actual notification // Register the actual notification
registration.showNotification('Vikunja Reminder', { registration.showNotification('Vikunja Reminder', {
tag: `vikunja-task-${this.id}`, // Group notifications by task id so we're only showing one notification per task tag: `vikunja-task-${this.id}`, // Group notifications by task id so we're only showing one notification per task
body: this.text, body: this.title,
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
showTrigger: new TimestampTrigger(date), showTrigger: new TimestampTrigger(date),
badge: '/images/icons/badge-monochrome.png', badge: '/images/icons/badge-monochrome.png',