Skip to content

Commit

Permalink
flowlist: remove broken DOWN indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Sep 9, 2024
1 parent dab375b commit 44de569
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webapp/static/js/flowlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,12 @@ class FlowList {
flowInfoDiv.appendChild(flowInfoDiv2)
flowEl.appendChild(flowInfoDiv)

// Use application protocol as first badge, or 'DOWN' if connection failed
const appProto = flow.app_proto?.replace('failed', 'raw')
const badge = appProto ? this.tagBadge(appProto.toUpperCase()) : this.tagBadge('DOWN', 'danger')
flowEl.appendChild(badge)
// Use application protocol as first badge if defined
const appProto = flow.app_proto?.replace('failed', 'raw') ?? 'raw'
if (appProto) {
const badge = this.tagBadge(appProto.toUpperCase())
flowEl.appendChild(badge)
}

const flowTags = flow.tags?.split(',')
tags.forEach(t => {
Expand Down

0 comments on commit 44de569

Please sign in to comment.