setting NotificationReadToggle options for several cases. improve options

This commit is contained in:
2022-01-06 13:25:18 +01:00
parent b9e5734039
commit 140f53b81f
6 changed files with 39 additions and 23 deletions

View File

@@ -23,8 +23,8 @@ window.addEventListener('DOMContentLoaded', function (e) {
return {
notificationId: +el.dataset.notificationId,
buttonClass: el.dataset.buttonClass,
buttonNoText: 'true' === el.dataset.buttonNoText,
showUrl: el.dataset.showUrl,
buttonNoText: 'false' === el.dataset.buttonText,
showUrl: el.dataset.showButtonUrl,
isRead: 1 === +el.dataset.notificationCurrentIsRead,
}
},