Config and Scripts templates pages as requested from issue #3159 (#3160)

* config and scripts templates #3159

* fixed bug for config rename, clone operations

* add reload for config and script list

* fixed timeout
This commit is contained in:
Gabriele Pappalardo 2019-12-29 13:42:26 +01:00 committed by simonemainardi
parent eb0a6e5310
commit 90c4865789
11 changed files with 1167 additions and 1139 deletions

View file

@ -55,6 +55,8 @@ elseif(action == "rename") then
if not success then
result.error = err
-- Can be used to trigger a new request
result.csrf = ntop.getRandomCSRFValue()
end
elseif(action == "clone") then
local new_name = _POST["confset_name"]
@ -69,6 +71,8 @@ elseif(action == "clone") then
if not success then
result.error = err
-- Can be used to trigger a new request
result.csrf = ntop.getRandomCSRFValue()
else
result.config_id = err
end