mirror of https://github.com/node-red/node-red.git
Fix subflow UI for select
parent
f0839571d0
commit
1c44b0bc98
|
@ -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 || {};
|
||||
|
|
Loading…
Reference in New Issue