mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 17:16:22 +01:00
[ADD] Refresh notification icon script
Similar to what we have in AAv3 for the notification count
This commit is contained in:
@@ -122,13 +122,14 @@
|
||||
{% theme_js %}
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<script type="application/javascript">
|
||||
let notificationUPdateSettings = {
|
||||
notificationsListViewUrl: "{% url 'notifications:list' %}",
|
||||
notificationsRefreshTime: "{% notifications_refresh_time %}",
|
||||
<script>
|
||||
const notificationUpdateSettings = {
|
||||
refreshTime: "{% notifications_refresh_time %}",
|
||||
userNotificationsCountViewUrl: "{% url 'notifications:user_notifications_count' request.user.pk %}"
|
||||
};
|
||||
</script>
|
||||
|
||||
{% include 'bundles/refresh-notification-icon-js.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% block extra_javascript %}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{% load static %}
|
||||
|
||||
<script src="{% static 'allianceauth/js/refresh-notification-icon.js' %}"></script>
|
||||
Reference in New Issue
Block a user