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:
parent
f0839571d0
commit
1c44b0bc98
@ -1360,14 +1360,19 @@ RED.subflow = (function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildEnvUIRow(row, tenv, ui) {
|
function buildEnvUIRow(row, tenv, ui) {
|
||||||
|
|
||||||
ui.label = ui.label||{};
|
ui.label = ui.label||{};
|
||||||
ui.opts = ui.opts||{};
|
|
||||||
if (!ui.type) {
|
if (!ui.type) {
|
||||||
ui.type = "input";
|
ui.type = "input";
|
||||||
ui.opts = {types:['str','num','bool','json','bin','env']}
|
ui.opts = {types:['str','num','bool','json','bin','env']}
|
||||||
} else {
|
} 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 || {};
|
var labels = ui.label || {};
|
||||||
|
Loading…
Reference in New Issue
Block a user