Add button to reset the user scripts configuration

Closes #3307
This commit is contained in:
emanuele-f 2020-01-24 11:09:48 +01:00
parent ae4a8bdca0
commit f8d09f7387
6 changed files with 45 additions and 10 deletions

View file

@ -20,6 +20,10 @@ if not haveAdminPrivileges() then
return
end
if(_POST["action"] == "reset_config") then
user_scripts.resetConfigsets()
end
-- get subdir form url
local subdir = _GET["subdir"]
-- set default value for subdir if its empty