hide progress when we're done or failed
This commit is contained in:
parent
d789bb2382
commit
664df23468
2 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
|
|
|
@ -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 & </span>reboot</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue