Add button to export user script conf. New endpoint to set user scripts configuration.

This commit is contained in:
Alfredo Cardigliano 2020-01-15 17:48:00 +01:00
parent 33828c55e8
commit 3ce84b07cf
6 changed files with 109 additions and 2 deletions

View file

@ -22,7 +22,7 @@ if not haveAdminPrivileges() then
return
end
sendHTTPHeader('application/json')
sendHTTPContentTypeHeader('application/json', 'attachment; filename="scripts_configuration.json"')
local conf = user_scripts.getConfigsets()