mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
show SNMP menu when we are in simple view (#4552)
This commit is contained in:
parent
697eae64d1
commit
16c7ed657b
3 changed files with 42 additions and 48 deletions
|
|
@ -100,10 +100,13 @@ function prefsGetActiveSubpage(show_advanced_prefs, tab)
|
|||
return subpage_active, tab
|
||||
end
|
||||
|
||||
function printMenuSubpages(tab)
|
||||
function printMenuSubpages(tab, selected_view)
|
||||
|
||||
selected_view = (selected_view or 'simple')
|
||||
|
||||
for _, subpage in ipairs(menu_subpages) do
|
||||
if not subpage.hidden then
|
||||
local url = ternary(subpage.disabled, "#", ntop.getHttpPrefix() .. [[/lua/admin/prefs.lua?tab=]] .. (subpage.id))
|
||||
local url = ternary(subpage.disabled, "#", ntop.getHttpPrefix() .. [[/lua/admin/prefs.lua?view=]].. selected_view ..[[&tab=]] .. (subpage.id))
|
||||
print[[<a href="]] print(url) print[[" class="list-group-item list-group-item-action]]
|
||||
|
||||
if(tab == subpage.id) then
|
||||
|
|
@ -119,8 +122,8 @@ end
|
|||
|
||||
-- ############################################
|
||||
|
||||
-- notify ntopng upon preference changes
|
||||
function notifyNtopng(key)
|
||||
--- Notify ntopng upon preference changes
|
||||
function notifyNtopng(key, value)
|
||||
if key == nil then return end
|
||||
-- notify runtime ntopng configuration changes
|
||||
if string.starts(key, 'toggle_logging_level') then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue