mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Second commit of importNodes
refactoring
This commit is contained in:
parent
b495c18694
commit
7e69eab39e
File diff suppressed because it is too large
Load Diff
@ -5618,12 +5618,9 @@ RED.view = (function() {
|
||||
* default names
|
||||
*/
|
||||
function importNodes(newNodesObj,options) {
|
||||
options = options || {
|
||||
addFlow: false,
|
||||
touchImport: false,
|
||||
generateIds: false,
|
||||
generateDefaultNames: false
|
||||
}
|
||||
const defaultOptions = { generateIds: false, addFlow: false, touchImport: false, generateDefaultNames: false, importMap: {} };
|
||||
options = Object.assign({}, defaultOptions, options);
|
||||
|
||||
var addNewFlow = options.addFlow
|
||||
var touchImport = options.touchImport;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user