From 35b9758b23fbbedbb4cad13f83550cf86f543a56 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Thu, 26 Nov 2020 18:29:11 -0500 Subject: [PATCH] Add non-grouped services at the bottom of the dashboard --- static/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/static/index.html b/static/index.html index ac18811d..a80e0081 100644 --- a/static/index.html +++ b/static/index.html @@ -296,6 +296,10 @@ } let output = ""; for (let group in outputByGroup) { + // Services that don't have a group should be skipped and left for last + if (group === 'undefined') { + continue + } let key = group.replace(/[^a-zA-Z0-9]/g, ''); let existingGroupContentSelector = $("#service-group-" + key + "-content"); let isCurrentlyHidden = existingGroupContentSelector.length && existingGroupContentSelector[0].style.display === 'none'; @@ -316,6 +320,13 @@ + " " + ""; } + // Add all services that don't have a group at the end + if (outputByGroup['undefined']) { + output += "" + + "
" + + " " + outputByGroup['undefined'] + + "
" + } $("#results").html(output); }