From d59627947b0751124f58ae8fab4beffac19b9329 Mon Sep 17 00:00:00 2001 From: aiooss-anssi Date: Mon, 9 Sep 2024 12:49:32 +0200 Subject: [PATCH] flowlist: remove broken DOWN indicator --- webapp/static/js/flowlist.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/webapp/static/js/flowlist.js b/webapp/static/js/flowlist.js index 8a1c11e..2ee2113 100644 --- a/webapp/static/js/flowlist.js +++ b/webapp/static/js/flowlist.js @@ -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 => {