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

Include input/output labels in diff view

This commit is contained in:
Nick O'Leary 2017-08-02 21:57:23 +01:00
parent 67dc848b2d
commit 4af43d676a
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -726,10 +726,14 @@ RED.diff = (function() {
} }
} }
} }
var properties = Object.keys(node).filter(function(p) { return p!='z'&&p!='wires'&&p!=='x'&&p!=='y'&&p!=='id'&&p!=='type'&&(!def.defaults||!def.defaults.hasOwnProperty(p))});
var properties = Object.keys(node).filter(function(p) { return p!='inputLabels'&&p!='outputLabels'&&p!='z'&&p!='wires'&&p!=='x'&&p!=='y'&&p!=='id'&&p!=='type'&&(!def.defaults||!def.defaults.hasOwnProperty(p))});
if (def.defaults) { if (def.defaults) {
properties = properties.concat(Object.keys(def.defaults)); properties = properties.concat(Object.keys(def.defaults));
} }
if (node.type !== 'tab' && node.type !== 'subflow') {
properties = properties.concat(['inputLabels','outputLabels']);
}
properties.forEach(function(d) { properties.forEach(function(d) {
localChanged = false; localChanged = false;
remoteChanged = false; remoteChanged = false;