mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Docs + flows work
This commit is contained in:
@@ -283,6 +283,7 @@ def plugin_param_from_glob_set(globalSetting):
|
||||
|
||||
noConversion = ['text', 'string', 'integer', 'boolean', 'password', 'readonly', 'integer.select', 'text.select', 'integer.checkbox' ]
|
||||
arrayConversion = ['text.multiselect', 'list']
|
||||
jsonConversion = ['.template']
|
||||
|
||||
if setTyp in noConversion:
|
||||
return setVal
|
||||
@@ -290,6 +291,12 @@ def plugin_param_from_glob_set(globalSetting):
|
||||
if setTyp in arrayConversion:
|
||||
return flatten_array(setVal)
|
||||
|
||||
for item in jsonConversion:
|
||||
if setTyp.endswith(item):
|
||||
return json.dumps(setVal)
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Gets the setting value
|
||||
def get_plugin_setting_value(plugin, function_key):
|
||||
|
||||
Reference in New Issue
Block a user