show all messages on settings pages
This commit is contained in:
parent
fcc1c2a648
commit
4afb605736
|
@ -10,7 +10,7 @@
|
||||||
<a href="{% url 'settings_scheduling' %}"><h3>Scheduling</h3></a>
|
<a href="{% url 'settings_scheduling' %}"><h3>Scheduling</h3></a>
|
||||||
<a href="{% url 'settings_actions' %}"><h3>Actions</h3></a>
|
<a href="{% url 'settings_actions' %}"><h3>Actions</h3></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="notifications" data="setting reindex"></div>
|
<div id="notifications" data=""></div>
|
||||||
{% block settings_content %}{% endblock %}
|
{% block settings_content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="{% static 'progress.js' %}"></script>
|
<script type="text/javascript" src="{% static 'progress.js' %}"></script>
|
||||||
|
|
|
@ -30,9 +30,15 @@ function getMessages(dataOrigin) {
|
||||||
|
|
||||||
function buildMessage(responseData, dataOrigin) {
|
function buildMessage(responseData, dataOrigin) {
|
||||||
// filter relevant messages
|
// filter relevant messages
|
||||||
let messages = responseData.filter(function (value) {
|
let messages;
|
||||||
return dataOrigin.split(' ').includes(value.group.split(':')[0]);
|
if (dataOrigin) {
|
||||||
}, dataOrigin);
|
messages = responseData.filter(function (value) {
|
||||||
|
return dataOrigin.split(' ').includes(value.group.split(':')[0]);
|
||||||
|
}, dataOrigin);
|
||||||
|
} else {
|
||||||
|
messages = responseData;
|
||||||
|
}
|
||||||
|
|
||||||
let notifications = document.getElementById('notifications');
|
let notifications = document.getElementById('notifications');
|
||||||
let currentNotifications = notifications.childElementCount;
|
let currentNotifications = notifications.childElementCount;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue