Fix talking_with_list dropdown entries printing. #(7210) (#7211)

Implemented as requested
This commit is contained in:
Nicolò Maio 2023-02-07 16:30:53 +01:00 committed by GitHub
parent 8eb2884613
commit 45c2055ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1701,7 +1701,12 @@ function printActiveFlowsDropdown(base_url, page_params, ifstats, flowstats, is_
<ul class="dropdown-menu scrollable-dropdown" role="menu">\
<li><a class="dropdown-item" href="]] print(getPageUrl(base_url, talking_with_params)) print[[">]] print(i18n("flows_page.all_hosts")) print[[</a></li>\]]
printDropdownEntries(talking_with_list, base_url, talking_with_params, "talking_with", page_params.talking_with)
print[[\
-- Check if talking_with_list is empty to print \ else is going to didn't call get_flows_data and html crash
if #talking_with_list >0 then
print[[\]]
end
print[[
</ul>\
</div>\
']]