mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
add severity select for scripts config modal (#4919)
This commit is contained in:
parent
1a2445f4f6
commit
aa45a8d64e
6 changed files with 89 additions and 49 deletions
|
|
@ -57,6 +57,7 @@ end
|
|||
local result = {
|
||||
hooks = {},
|
||||
gui = {},
|
||||
metadata = {}
|
||||
}
|
||||
|
||||
if(script.gui) then
|
||||
|
|
@ -75,6 +76,14 @@ if(script.gui) then
|
|||
result.gui.input_builder = script.gui.input_builder
|
||||
end
|
||||
|
||||
if (script.default_value) then
|
||||
result.metadata.default_value = script.default_value
|
||||
end
|
||||
|
||||
if (script.is_alert) then
|
||||
result.metadata.is_alert = script.is_alert
|
||||
end
|
||||
|
||||
local hooks_config = user_scripts.getScriptConfig(config_set, script, subdir)
|
||||
|
||||
for hook, config in pairs(hooks_config) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue