mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add support for on/off alert configuration
This commit is contained in:
parent
c1b114e151
commit
3ab6ff7901
3 changed files with 30 additions and 2 deletions
|
|
@ -960,6 +960,14 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.checkbox_input_builder(gui_conf, input_id, value)
|
||||
return(string.format([[
|
||||
<input type="checkbox" name="%s" %s/>
|
||||
]], input_id, ternary(value, "checked", "")))
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local function getEntityDisabledAlertsBitmapKey(ifid, entity, entity_val)
|
||||
return string.format("ntopng.prefs.alerts.ifid_%d.disabled_alerts.__%s__%s", ifid, entity, entity_val)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue