mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
add dropdown severity into user scripts
This commit is contained in:
parent
5bff4a1f31
commit
4422d669f1
4 changed files with 42 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ local json = require "dkjson"
|
|||
local discover = require "discover_utils"
|
||||
local rest_utils = require "rest_utils"
|
||||
local auth = require "auth"
|
||||
local alert_severities = require("alert_severities")
|
||||
|
||||
if not auth.has_capability(auth.capabilities.user_scripts) then
|
||||
rest_utils.answer(rest_utils.consts.err.not_granted)
|
||||
|
|
@ -112,6 +113,7 @@ local context = {
|
|||
confset_name = confset_name,
|
||||
script_filter = script_filter,
|
||||
search_filter = search_filter,
|
||||
alert_severities = alert_severities,
|
||||
page_url = ntop.getHttpPrefix() .. string.format("/lua/admin/edit_configset.lua?confset_id=%u&subdir=%s", confset_id, script_subdir),
|
||||
apps_and_categories = json.encode(apps_and_categories),
|
||||
device_types = json.encode(device_types_list),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue