Added asn mode menu handling with zmq interface (#9479)

This commit is contained in:
GabrieleDeri 2025-08-08 17:01:33 +02:00 committed by GitHub
parent ff6c336df9
commit 26d145af35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 11 deletions

View file

@ -81,16 +81,13 @@ elseif interface.isZMQInterface() then
show_sankey = true
end
-- used to load a different table in vuejs if ASN mode is enabled
local ASNModeEnabled = ntop.getPref("ntopng.prefs.toggle_asn_mode") == "1"
local context = {
ifid = ifid,
showSankey = show_sankey,
csrf = ntop.getRandomCSRFValue(),
isEnterprise = ntop.isEnterprise(),
showTimeseries = areASTimeseriesEnabled(ifid),
ASNModeEnabled = ASNModeEnabled
ASNModeEnabled = is_asn_mode_enabled
}
local json_context = json.encode(context)