mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Remove getGraphMenuEntries function
This commit is contained in:
parent
db44a554c9
commit
acdd80767e
1 changed files with 5 additions and 3 deletions
|
|
@ -338,6 +338,8 @@ end
|
|||
-- Prints the menu from the populated graph_menu_entries.
|
||||
-- The entry_print_callback is called to print the actual entries.
|
||||
function printGraphMenuEntries(entry_print_callback)
|
||||
local active_entries = {}
|
||||
|
||||
for idx, entry in ipairs(graph_menu_entries) do
|
||||
if(entry.pending and (entry.pending > 0)) then
|
||||
-- not verified, act like it does not exist
|
||||
|
|
@ -355,14 +357,14 @@ function printGraphMenuEntries(entry_print_callback)
|
|||
print(entry.html)
|
||||
else
|
||||
entry_print_callback(idx, entry)
|
||||
active_entries[#active_entries + 1] = entry
|
||||
end
|
||||
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
|
||||
function getGraphMenuEntries()
|
||||
return graph_menu_entries
|
||||
-- NOTE: only return the graph_menu_entries which are non-pending
|
||||
return active_entries
|
||||
end
|
||||
|
||||
-- ########################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue