mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-11 03:59:35 +00:00
Allow to view progress view while update is running
This commit is contained in:
parent
cad5261aba
commit
c34acfe523
2 changed files with 7 additions and 2 deletions
|
|
@ -62,6 +62,11 @@ readonly class MaintenanceModeSubscriber implements EventSubscriberInterface
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Allow to view the progress page
|
||||||
|
if (preg_match('#^/\w{2}/system/update-manager/progress#', $event->getRequest()->getPathInfo())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Allow CLI requests
|
// Allow CLI requests
|
||||||
if (PHP_SAPI === 'cli') {
|
if (PHP_SAPI === 'cli') {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
{# Auto-refresh while update is running - also refresh when 'starting' status #}
|
{# Auto-refresh while update is running - also refresh when 'starting' status #}
|
||||||
{% if not progress or progress.status == 'running' or progress.status == 'starting' %}
|
{% if not progress or progress.status == 'running' or progress.status == 'starting' %}
|
||||||
<meta http-equiv="refresh" content="2">
|
<meta http-equiv="refresh" content="5">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
<script nonce="{{ csp_nonce('script') }}">
|
<script nonce="{{ csp_nonce('script') }}">
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}, 2000);
|
}, 5000);
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue