hide progress when we're done or failed

This commit is contained in:
Laura Klünder 2023-12-02 02:03:05 +01:00
parent d789bb2382
commit 664df23468
2 changed files with 3 additions and 1 deletions

View file

@ -148,6 +148,7 @@ function connect() {
row.querySelectorAll('.auto-apply').forEach(x => x.remove());
row.querySelectorALL('.auto-reboot').forEach(x => x.remove());
row.querySelectorAll('button').forEach(x => x.remove());
row.querySelectorAll('.progress').forEach(x => x.remove());
}
if (data.status === 'canceled') {
row.querySelectorAll('.device_status').forEach(x => x.remove());

View file

@ -33,10 +33,11 @@
<span class="auto-reboot"><strong>auto reboot:</strong> <a href="#"></a><br></span>
</td>
<td>
<span class="progress">
<span class="received_bytes">??</span> of <span class="total_bytes">{{ update.build.binary.size }}</span> bytes
<br>
<progress id="file" max="{{ update.build.binary.size }}" value="0"></progress>
<br>
<br></span>
<button name="cancel">cancel</button> <button name="apply">apply</button> <button name="reboot"><span class="apply_and">apply &amp; </span>reboot</button>
</td>
</tr>