Docs + flows work

This commit is contained in:
Jokob-sk
2023-08-05 06:52:23 +10:00
parent b4dd34355e
commit 4fbaccc0f2
8 changed files with 168 additions and 48 deletions

View File

@@ -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):