mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Hide alerts link where alerts are disabled
This commit is contained in:
parent
cd3acbfb5b
commit
096db1085d
4 changed files with 16 additions and 9 deletions
|
|
@ -378,6 +378,11 @@ function alertEntityRaw(entity_idx)
|
|||
return nil
|
||||
end
|
||||
|
||||
function areAlertsEnabled()
|
||||
return ((not ntop.getPrefs().has_cmdl_disable_alerts) and
|
||||
(ntop.getPref("ntopng.prefs.disable_alerts_generation") ~= "1"))
|
||||
end
|
||||
|
||||
function firstToUpper(str)
|
||||
str = tostring(str)
|
||||
return (str:gsub("^%l", string.upper))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue