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 cbc45d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/static/js/flowlist.js
Original file line number Diff line number Diff line change
@@ -393,9 +393,9 @@ 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')
// Use application protocol as first badge if defined
const appProto = flow.app_proto?.replace('failed', 'raw') ?? 'raw'
const badge = this.tagBadge(appProto.toUpperCase())
flowEl.appendChild(badge)

const flowTags = flow.tags?.split(',')

0 comments on commit cbc45d2

Please sign in to comment.