update status on listening pending events

This commit is contained in:
2023-09-26 12:15:59 +02:00
parent 7d768127a6
commit d24e42ec8e
4 changed files with 31 additions and 3 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
<input type="text" readonly class="form-control-plaintext" id="status" value="{{ deployment.status }}">
<label for="status">Status</label>
</div>
{% if deployment.status == "RUNNING" %}
{% if deployment.status == "RUNNING" or deployment.status == "PENDING" %}
<div class="form-floating mb-3">
<div class="progress" role="progressbar" aria-label="deployment-progress" aria-valuenow="{{ deployment.progress }}" aria-valuemin="0" aria-valuemax="100">
<div id="deployment-progress" class="progress-bar progress-bar-striped progress-bar-animated" style="width: {{ deployment.progress }}%"></div>
@@ -88,7 +88,7 @@
{% endblock %}
{% block script %}
{% if deployment.status == "RUNNING" %}
{% if deployment.status == "RUNNING" or deployment.status == "PENDING" %}
<script src="{% static 'deployment/js/event_source_details.js' %}" />
</script>
{% endif %}