Fix jwt-token
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user