format device status a bit better

This commit is contained in:
Laura Klünder 2023-12-02 01:45:10 +01:00
parent 9f89c4fa96
commit a11fe365d1

View file

@ -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.querySelectorAll('.device_status').forEach(x => x.innerText = ' / '+data.msg.status);
row.querySelectorAll('.device_status').forEach(x => x.innerText = ' / '+data.msg.status.toLowerCase().replace("_", " "));
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(