show device status in ota detail
This commit is contained in:
parent
1fbd213e9d
commit
929f9a2712
2 changed files with 2 additions and 1 deletions
|
@ -215,6 +215,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').value = 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(
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<tr id="ota-recipient-{{ update.pk }}-{{ recipient.node_id }}" data-recipient="{{ recipient.pk }}">
|
||||
<td>{% mesh_node recipient.node %}</td>
|
||||
<td>
|
||||
<span class="status"></span><br>
|
||||
<span class="status"></span> / <span class="device_status"></span><br>
|
||||
<span class="auto-apply"><strong>auto apply:</strong> <a href="#"></a><br></span>
|
||||
<span class="auto-reboot"><strong>auto reboot:</strong> <a href="#"></a><br></span>
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue