Now with status updates for devices.

This commit is contained in:
Scott Idem
2024-10-17 12:56:10 -04:00
parent a0d5a97d48
commit 67b01c5884
5 changed files with 66 additions and 2 deletions

View File

@@ -166,8 +166,31 @@ if (!$events_loc.pres_mgmt?.device_kv) {
{event_device_obj?.alert ? 'Alert' : 'No Alert'}
<span class="fas fa-exclamation-triangle mx-1" />
<br>
{event_device_obj?.alert_msg ?? 'No Alert Message'}
{event_device_obj?.alert_msg ?? 'No message'}
</div>
<div
class="text-red-500 bg-red-200 p-1 rounded-md border border-red-200 text-center"
class:hidden={!event_device_obj?.status && !event_device_obj?.status_msg}
>
<span class="fas fa-exclamation-triangle mx-1" />
{event_device_obj?.status ? 'Status' : 'No Status'}
<span class="fas fa-exclamation-triangle mx-1" />
<br>
{event_device_obj?.status_msg ?? 'No message'}
</div>
<div
class="text-red-500 bg-red-200 p-1 rounded-md border border-red-200 text-center"
class:hidden={!event_device_obj?.record_status && !event_device_obj?.record_status_msg}
>
<span class="fas fa-exclamation-triangle mx-1" />
{event_device_obj?.record_status ? 'Recording Status' : 'No Recording Status'}
<span class="fas fa-exclamation-triangle mx-1" />
<br>
{event_device_obj?.record_status_msg ?? 'No message'}
</div>
<div class="flex flex-col gap-1">
<span>
<strong class="text-sm">hostname:</strong>