fix the thing

This commit is contained in:
Laura Klünder 2023-12-02 01:42:04 +01:00
parent d15ca0832c
commit 9f89c4fa96

View file

@ -150,7 +150,7 @@ function connect() {
row.querySelectorAll('button').forEach(x => x.remove());
}
if (data.status === 'canceled') {
row.querySelectorALL('.device_status').forEach(x => x.remove());
row.querySelectorAll('.device_status').forEach(x => x.remove());
}
{% endif %}
break;
@ -218,7 +218,7 @@ function connect() {
var total = parseInt(row.querySelector('.total_bytes').innerText);
row.querySelector('.received_bytes').innerText = data.msg.received_bytes;
row.querySelector('progress').value = data.msg.received_bytes;
row.querySelector('.device_status').forEach(x => x.innerText = ' / '+data.msg.status);
row.querySelectorAll('.device_status').forEach(x => x.innerText = ' / '+data.msg.status);
row.querySelectorAll('.auto-apply a').forEach(x => x.innerText = data.msg.auto_apply ? 'yes' : 'no');
row.querySelectorAll('.auto-reboot a').forEach(x => x.innerText = data.msg.auto_reboot ? 'yes' : 'no');
row.querySelectorAll('button[name=apply]').forEach(