Add non-grouped services at the bottom of the dashboard
This commit is contained in:
parent
94eb3868e6
commit
35b9758b23
@ -296,6 +296,10 @@
|
|||||||
}
|
}
|
||||||
let output = "";
|
let output = "";
|
||||||
for (let group in outputByGroup) {
|
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 key = group.replace(/[^a-zA-Z0-9]/g, '');
|
||||||
let existingGroupContentSelector = $("#service-group-" + key + "-content");
|
let existingGroupContentSelector = $("#service-group-" + key + "-content");
|
||||||
let isCurrentlyHidden = existingGroupContentSelector.length && existingGroupContentSelector[0].style.display === 'none';
|
let isCurrentlyHidden = existingGroupContentSelector.length && existingGroupContentSelector[0].style.display === 'none';
|
||||||
@ -316,6 +320,13 @@
|
|||||||
+ " </div>"
|
+ " </div>"
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
}
|
}
|
||||||
|
// Add all services that don't have a group at the end
|
||||||
|
if (outputByGroup['undefined']) {
|
||||||
|
output += ""
|
||||||
|
+ "<div class='mt-" + (output.length ? '4' : '3') + "'>"
|
||||||
|
+ " " + outputByGroup['undefined']
|
||||||
|
+ "</div>"
|
||||||
|
}
|
||||||
$("#results").html(output);
|
$("#results").html(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user