mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Display Active Monitoring menu entry even when disabled
This commit is contained in:
parent
f94f784c0f
commit
aab41dd66e
3 changed files with 18 additions and 4 deletions
|
|
@ -5,8 +5,8 @@ return {
|
|||
menu_entry = {key = "active_monitor", i18n_title = "active_monitoring_stats.active_monitoring", section = "system_stats"},
|
||||
|
||||
is_shown = function()
|
||||
local user_scripts = require("user_scripts")
|
||||
|
||||
return(user_scripts.isSystemScriptEnabled("active_monitoring"))
|
||||
-- The active monitoring page is always shown. If the plugin is disabled,
|
||||
-- the page itself will show a warning
|
||||
return(true)
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue