mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Do not include credentials when exporting to clipboard
This commit is contained in:
parent
586006de4d
commit
347410f744
@ -1468,7 +1468,7 @@ RED.nodes = (function() {
|
||||
}
|
||||
}
|
||||
if (node.type !== "subflow") {
|
||||
var convertedNode = RED.nodes.convertNode(node);
|
||||
var convertedNode = RED.nodes.convertNode(node, { credentials: false });
|
||||
for (var d in node._def.defaults) {
|
||||
if (node._def.defaults[d].type) {
|
||||
var nodeList = node[d];
|
||||
@ -1501,7 +1501,7 @@ RED.nodes = (function() {
|
||||
nns = nns.concat(createExportableNodeSet(node.nodes, exportedIds, exportedSubflows, exportedConfigNodes));
|
||||
}
|
||||
} else {
|
||||
var convertedSubflow = convertSubflow(node);
|
||||
var convertedSubflow = convertSubflow(node, { credentials: false });
|
||||
nns.push(convertedSubflow);
|
||||
}
|
||||
}
|
||||
|
@ -731,7 +731,7 @@ RED.clipboard = (function() {
|
||||
nodes.unshift(parentNode);
|
||||
nodes = RED.nodes.createExportableNodeSet(nodes);
|
||||
} else if (type === 'full') {
|
||||
nodes = RED.nodes.createCompleteNodeSet(false);
|
||||
nodes = RED.nodes.createCompleteNodeSet({ credentials: false });
|
||||
}
|
||||
if (nodes !== null) {
|
||||
if (format === "red-ui-clipboard-dialog-export-fmt-full") {
|
||||
|
Loading…
Reference in New Issue
Block a user