mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Added asn mode menu handling with zmq interface (#9479)
This commit is contained in:
parent
ff6c336df9
commit
26d145af35
7 changed files with 46 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue