Load container status into iframe as streamed response

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-02-11 15:54:41 +01:00
parent 769d5e9344
commit 43dc0769b2
8 changed files with 190 additions and 28 deletions

View file

@ -338,7 +338,7 @@
</form>
{% else %}
{% if was_start_button_clicked == false %}
<form method="POST" action="api/docker/start" class="xhr">
<form method="POST" action="api/docker/start" target="overlay-log">
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
<input id="base_path" type="hidden" name="base_path" value="">
@ -355,7 +355,7 @@
<input type="submit" value="Start containers" />
</form>
{% else %}
<form method="POST" action="api/docker/start" class="xhr">
<form method="POST" action="api/docker/start" target="overlay-log">
<input type="hidden" name="{{csrf.keys.name}}" value="{{csrf.name}}">
<input type="hidden" name="{{csrf.keys.value}}" value="{{csrf.value}}">
<input id="base_path" type="hidden" name="base_path" value="">

View file

@ -14,7 +14,7 @@
</div>
<div id="overlay">
<div class="loader"></div>
<div id="overlay-log"></div>
<iframe name='overlay-log' id="overlay-log"></iframe>
</div>
<script src="overlay-log.js"></script>
<button id="theme-toggle" onclick="toggleTheme()">