mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
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_actions' %}"><h3>Actions</h3></a>
|
||||
</div>
|
||||
<div id="notifications" data="setting reindex"></div>
|
||||
<div id="notifications" data=""></div>
|
||||
{% block settings_content %}{% endblock %}
|
||||
</div>
|
||||
<script type="text/javascript" src="{% static 'progress.js' %}"></script>
|
||||
|
@ -30,9 +30,15 @@ function getMessages(dataOrigin) {
|
||||
|
||||
function buildMessage(responseData, dataOrigin) {
|
||||
// filter relevant messages
|
||||
let messages = responseData.filter(function (value) {
|
||||
return dataOrigin.split(' ').includes(value.group.split(':')[0]);
|
||||
}, dataOrigin);
|
||||
let messages;
|
||||
if (dataOrigin) {
|
||||
messages = responseData.filter(function (value) {
|
||||
return dataOrigin.split(' ').includes(value.group.split(':')[0]);
|
||||
}, dataOrigin);
|
||||
} else {
|
||||
messages = responseData;
|
||||
}
|
||||
|
||||
let notifications = document.getElementById('notifications');
|
||||
let currentNotifications = notifications.childElementCount;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user