diff --git a/src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js b/src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js index 9788ca82a..68b06b76a 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js +++ b/src/Bundle/ChillMainBundle/Resources/public/module/notification/toggle_read.js @@ -6,7 +6,7 @@ const i18n = _createI18n({}); window.addEventListener('DOMContentLoaded', function (e) { document.querySelectorAll('.notification_toggle_read_status') - .forEach(function (el) { + .forEach(function (el, i) { createApp({ template: ' +
{# TODO pagination or limit #} {% for notification in notifications %} -
+
{% if not notification.isSystem %} {% if notification.sender == app.user %}