Skip to content

Commit

Permalink
webapp/inbox: if dns.queries exist, use that for rrname badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Oct 11, 2024
1 parent fbe4257 commit 96b5208
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webapp/src/Alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,11 @@ export function AlertDescription(props: { event: EventWrapper }) {
{props.event._source.dns?.query![0].rrname}
</span>
</Show>
<Show when={props.event._source.dns?.queries}>
<span class="badge text-bg-secondary me-2">
{props.event._source.dns?.queries![0].rrname}
</span>
</Show>
<Show when={props.event._source.http?.hostname}>
<span class="badge text-bg-secondary me-2">
{props.event._source.http?.hostname}
Expand Down

0 comments on commit 96b5208

Please sign in to comment.