mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix enable/disable report view/download. (#7760)
This commit is contained in:
parent
413c2a60ac
commit
f7a78017be
4 changed files with 48 additions and 9 deletions
|
|
@ -36,7 +36,12 @@ else
|
|||
end
|
||||
|
||||
if result == 1 then
|
||||
rest_utils.answer(rest_utils.consts.success.ok)
|
||||
-- ok
|
||||
rest_utils.answer(rest_utils.consts.success.ok, {rsp= true})
|
||||
elseif result == 2 then
|
||||
--already inserted case
|
||||
rest_utils.answer(rest_utils.consts.success.ok, {rsp= false})
|
||||
|
||||
else
|
||||
rest_utils.answer(rest_utils.consts.err.internal_error)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue