mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
* 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:
parent
eb0a6e5310
commit
90c4865789
11 changed files with 1167 additions and 1139 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue