Fix jwt-token

This commit is contained in:
2025-09-22 08:13:29 +02:00
parent e8c5306e10
commit 3a94adcdbd
2 changed files with 14 additions and 0 deletions

View File

@@ -352,6 +352,7 @@ const Alerts = () => {
<th>{t('alerts.type')}</th>
<th>{t('alerts.recipient')}</th>
<th>{t('alerts.rule')}</th>
<th>{t('alerts.droneId')}</th>
<th>{t('alerts.detection')}</th>
<th>{t('alerts.message')}</th>
<th>{t('alerts.sentAt')}</th>
@@ -383,6 +384,17 @@ const Alerts = () => {
{log.rule?.name || t('alerts.unknownRule')}
</div>
</td>
<td>
<div className="text-sm text-gray-900">
{log.detection?.drone_id ? (
<span className="px-2 py-1 bg-purple-100 text-purple-800 rounded text-xs font-mono">
{log.detection.drone_id}
</span>
) : (
<span className="text-gray-400 text-sm">{t('alerts.na')}</span>
)}
</div>
</td>
<td>
{log.detection_id ? (
<button

View File

@@ -192,6 +192,7 @@ const translations = {
delete: 'Delete',
recipient: 'Recipient',
rule: 'Rule',
droneId: 'Drone ID',
detection: 'Detection',
message: 'Message',
sentAt: 'Sent At',
@@ -675,6 +676,7 @@ const translations = {
delete: 'Ta bort',
recipient: 'Mottagare',
rule: 'Regel',
droneId: 'Drönar-ID',
detection: 'Detektion',
message: 'Meddelande',
sentAt: 'Skickat vid',