1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix subflow UI for select

This commit is contained in:
Hiroyasu Nishiyama 2019-09-15 23:44:01 +09:00
parent f0839571d0
commit 1c44b0bc98

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 || {};