load stream js scripts on pending state

This commit is contained in:
rmanach 2023-09-26 12:20:43 +02:00
parent d24e42ec8e
commit 84f436817b

View File

@ -12,7 +12,7 @@
{% endblock %}
{% block headscript %}
{% if deployment.status == "RUNNING" %}
{% if deployment.status == "RUNNING" or deployment.status == "PENDING" %}
<script src="{% static 'django_eventstream/json2.js' %}"></script>
<script src="{% static 'django_eventstream/eventsource.min.js' %}"></script>
<script src="{% static 'django_eventstream/reconnecting-eventsource.js' %}"></script>