Skip to content
Snippets Groups Projects
Commit b3111e90 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Listl
Browse files

[Projekt: Entwicklung - xRM][TicketNr.: 1068555][Serienbrief - Preview/Tab...

[Projekt: Entwicklung - xRM][TicketNr.: 1068555][Serienbrief - Preview/Tab Empfänger - Meldung "Aktion nicht unterstützt" obwohl odt vorhanden]
parent a0e9a6d1
No related branches found
No related tags found
No related merge requests found
......@@ -21,4 +21,15 @@ SingleBinaryUtils.set("SERIALLETTER", "SERIALLETTERFILE", letterId, document.con
var message = translate.text("Download ready");
var description = translate.withArguments("Serial letter \"%0\" can now be downloaded", [document.title]);
notification.addNotification(util.getNewUUID(), text.encodeMS(["SerialLetter", letterId]), null, null, "DownloadReady", null, notification.PRIO_NORMAL, 2, notification.STATE_UNSEEN, [user], message, description);
\ No newline at end of file
var notificationConfig = notification.createConfig()
.initialState(notification.STATE_UNSEEN)
.forcedPriority(notification.PRIO_NORMAL)
.linkInfo(text.encodeMS(["SerialLetter", letterId]))
.daysToLive(2)
.addUserWithId(user)
.notificationType("DownloadReady")
.caption(message)
.description(description);
notification.addNotificationWith(notificationConfig);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment