mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix disabled user script value
This commit is contained in:
parent
018e426887
commit
33ae78c34f
1 changed files with 5 additions and 2 deletions
|
|
@ -51,8 +51,11 @@ function DefaultTemplate:parseConfig(script, conf)
|
|||
end
|
||||
|
||||
function DefaultTemplate:describeConfig(script, hooks_conf)
|
||||
if(hooks_conf.all and hooks_conf.all.enabled) then
|
||||
return i18n("enabled")
|
||||
-- Assumption: table length is 1
|
||||
for _, hook in pairs(hooks_conf) do
|
||||
if hook.enabled then
|
||||
return i18n("enabled")
|
||||
end
|
||||
end
|
||||
|
||||
return i18n("disabled")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue