diff --git a/InvenTree/InvenTree/context.py b/InvenTree/InvenTree/context.py index 3e1f98ffc2..bd68a0182f 100644 --- a/InvenTree/InvenTree/context.py +++ b/InvenTree/InvenTree/context.py @@ -36,9 +36,14 @@ def health_status(request): 'email_configured': InvenTree.status.is_email_configured(), } + # The following keys are required to denote system health + health_keys = [ + 'django_q_running', + ] + all_healthy = True - for k in status.keys(): + for k in health_keys: if status[k] is not True: all_healthy = False diff --git a/InvenTree/templates/navbar.html b/InvenTree/templates/navbar.html index b109bd9daf..6946b69bce 100644 --- a/InvenTree/templates/navbar.html +++ b/InvenTree/templates/navbar.html @@ -71,11 +71,7 @@ {% if user.is_staff %} {% if not system_healthy %} - {% if not django_q_running %} - {% else %} - - {% endif %} {% elif not up_to_date %} {% endif %} @@ -96,11 +92,7 @@ {% if system_healthy or not user.is_staff %} {% else %} - {% if not django_q_running %} - - {% else %} - - {% endif %} + {% endif %} {% trans "System Information" %}