now check for state on delete modal

This commit is contained in:
Thomas Nahuel Rusiecki 2024-12-16 17:50:31 -03:00
parent 0217ed6d04
commit 7cbfd3223d

View file

@ -133,6 +133,8 @@
</div> </div>
</div> </div>
{% if device_states %}
<div class="modal fade" id="deleteStateModal{{ device_states.0.id }}" tabindex="-1" aria-labelledby="deleteStateModalLabel{{ state_change.id }}" aria-hidden="true"> <div class="modal fade" id="deleteStateModal{{ device_states.0.id }}" tabindex="-1" aria-labelledby="deleteStateModalLabel{{ state_change.id }}" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
@ -166,3 +168,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %}