mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix active entry not displayed
This commit is contained in:
parent
dc2071ede2
commit
7c5983d0a5
1 changed files with 6 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ 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)
|
||||
function printGraphMenuEntries(entry_print_callback, active_entry)
|
||||
local active_entries = {}
|
||||
local active_idx = 1 -- index in active_entries
|
||||
local needs_separator = false
|
||||
|
|
@ -350,6 +350,11 @@ function printGraphMenuEntries(entry_print_callback)
|
|||
separator_label = separator_label or entry.separator_label
|
||||
end
|
||||
|
||||
if(active_entry == entry) then
|
||||
-- Always consider the selected entry as active
|
||||
entry.pending = 0
|
||||
end
|
||||
|
||||
if(entry.pending and (entry.pending > 0)) then
|
||||
-- not verified, act like it does not exist
|
||||
goto continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue