Skip to content

Commit 285f015

Browse files
remove due date in notification translation
1 parent c7e929a commit 285f015

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webapp/src/ts/services/task-notifications.service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export class TasksNotificationService implements OnDestroy {
8080
contentText: this.translateContentText(
8181
task.emission.title,
8282
task.emission.contact.name,
83-
task.emission.dueDate
8483
),
8584
endDate: moment(task.emission.endDate).valueOf(),
8685
dueDate: moment(task.emission.dueDate).valueOf()
@@ -108,10 +107,9 @@ export class TasksNotificationService implements OnDestroy {
108107
return DEFAULT_MAX_NOTIFICATIONS;
109108
}
110109

111-
private translateContentText(taskName: string, contact: string, dueDate: string): string {
110+
private translateContentText(taskName: string, contact: string): string {
112111
const key = 'android.notification.tasks.contentText';
113-
const due = this.formatDateService.relative(dueDate, { task: true });
114-
return this.translateService.instant(key, { taskName, contact, due });
112+
return this.translateService.instant(key, { taskName, contact });
115113
}
116114

117115
}

0 commit comments

Comments
 (0)