refactored device-dashboard code

This commit is contained in:
robert committed 2023-06-19 06:28:00 -04:00
1 parent 2bab274056
commit b7f86ba743
4 files changed
+32 -42

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ function Events({}) {
<tr>
<${Td} text=${['power', 'hardware', 'tier3', 'tier4'][e.type]} />
<${Td} text=${html`<${Prio} prio=${e.prio}/>`} />
<${Td} text=${e.time || '1970-01-01'} />
<${Td} text=${e.time ? (new Date(e.time * 1000)).toLocaleString() : '1970-01-01'} />
<${Td} text=${e.text} />
<//>`;