Fix subflow UI for select

pull/2286/head
Hiroyasu Nishiyama 2019-09-15 23:44:01 +09:00
parent f0839571d0
commit 1c44b0bc98
1 changed files with 8 additions and 3 deletions

View File

@ -1360,14 +1360,19 @@ RED.subflow = (function() {
}
function buildEnvUIRow(row, tenv, ui) {
ui.label = ui.label||{};
ui.opts = ui.opts||{};
if (!ui.type) {
ui.type = "input";
ui.opts = {types:['str','num','bool','json','bin','env']}
} else {
ui.opts = ui.opts || {};
var typeOptions = {
'input': {types:['str','num','bool','json','bin','env']},
'select': {opts:[]},
'spinner': {}
};
if (!ui.opts) {
ui.opts = (ui.type === "select") ? {opts:[]} : {};
}
}
var labels = ui.label || {};