fix received_bytes is not defined
This commit is contained in:
parent
5b227190a8
commit
41bc94fd6b
1 changed files with 2 additions and 2 deletions
|
@ -218,10 +218,10 @@ function connect() {
|
||||||
row.querySelectorAll('.auto-apply a').forEach(x => x.innerText = data.msg.auto_apply ? 'yes' : 'no');
|
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('.auto-reboot a').forEach(x => x.innerText = data.msg.auto_reboot ? 'yes' : 'no');
|
||||||
row.querySelectorAll('button[name=apply]').forEach(
|
row.querySelectorAll('button[name=apply]').forEach(
|
||||||
x => x.style.display = (received_bytes >= total && data.msg.status === "STARTED") ? 'inline-block' : 'none'
|
x => x.style.display = (data.msg.received_bytes >= total && data.msg.status === "STARTED") ? 'inline-block' : 'none'
|
||||||
);
|
);
|
||||||
row.querySelectorAll('button[name=reboot]').forEach(
|
row.querySelectorAll('button[name=reboot]').forEach(
|
||||||
x => x.style.display = ((received_bytes >= total && data.msg.status === "STARTED") || data.msg.status === "APPLIED") ? 'inline-block' : 'none'
|
x => x.style.display = ((data.msg.received_bytes >= total && data.msg.status === "STARTED") || data.msg.status === "APPLIED") ? 'inline-block' : 'none'
|
||||||
);
|
);
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if send_uuid and msg_type == "MESH_ROUTE_REQUEST" %}
|
{% if send_uuid and msg_type == "MESH_ROUTE_REQUEST" %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue