fix type selector of subflow environment variable

This commit is contained in:
Hiroyasu Nishiyama 2022-06-28 09:16:30 +09:00
parent 4bd71da056
commit f7e6d7d143
1 changed files with 8 additions and 2 deletions

View File

@ -41,8 +41,14 @@ RED.editor.envVarList = (function() {
style: "width:100%",
class: "node-input-env-value",
type: "text",
}).attr("autocomplete","disable").appendTo(envRow)
valueField.typedInput({default:'str',types:isTemplateNode?DEFAULT_ENV_TYPE_LIST:DEFAULT_ENV_TYPE_LIST_INC_CRED});
}).attr("autocomplete","disable").appendTo(envRow);
var types = (opt.ui && opt.ui.opts && opt.ui.opts.types);
if (!types) {
types = isTemplateNode
? DEFAULT_ENV_TYPE_LIST
: DEFAULT_ENV_TYPE_LIST_INC_CRED;
}
valueField.typedInput({default:'str',types:types});
valueField.typedInput('type', opt.type);
if (opt.type === "cred") {
if (opt.value) {