From 4afb6057364e64cbf36879c6235df1cc30a72b2f Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 31 Aug 2023 12:16:17 +0700 Subject: [PATCH] show all messages on settings pages --- tubearchivist/home/templates/home/base_settings.html | 2 +- tubearchivist/static/progress.js | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tubearchivist/home/templates/home/base_settings.html b/tubearchivist/home/templates/home/base_settings.html index 885cbe98..3eb6c13b 100644 --- a/tubearchivist/home/templates/home/base_settings.html +++ b/tubearchivist/home/templates/home/base_settings.html @@ -10,7 +10,7 @@

Scheduling

Actions

-
+
{% block settings_content %}{% endblock %} diff --git a/tubearchivist/static/progress.js b/tubearchivist/static/progress.js index a2b35daf..a73654ab 100644 --- a/tubearchivist/static/progress.js +++ b/tubearchivist/static/progress.js @@ -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;