Rework user script working sets (a single configset is supported now)

This commit is contained in:
Alfredo Cardigliano 2021-03-01 15:37:45 +01:00
parent 03512b963f
commit fa311e3ade
45 changed files with 259 additions and 1077 deletions

View file

@ -13,7 +13,6 @@ local alert_consts = require("alert_consts")
sendHTTPContentTypeHeader('application/json')
local subdir = _POST["script_subdir"]
local confset_id = tonumber(_POST["confset_id"] or user_scripts.DEFAULT_CONFIGSET_ID)
local script_key = _POST["script_key"]
local action = _POST["action"]
@ -50,7 +49,7 @@ end
local result = {}
local success, err = user_scripts.toggleScript(confset_id, script_key, subdir, (action == "enable"))
local success, err = user_scripts.toggleScript(script_key, subdir, (action == "enable"))
result.success = success