Initial locking flows UX

This commit is contained in:
Nick O'Leary
2022-09-19 21:09:00 +01:00
parent a351cd9d9f
commit 3cb5259494
6 changed files with 140 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ RED.nodes = (function() {
defaults: {
label: {value:""},
disabled: {value: false},
locked: {value: false},
info: {value: ""},
env: {value: []}
}
@@ -1052,6 +1053,9 @@ RED.nodes = (function() {
node.type = n.type;
for (var d in n._def.defaults) {
if (n._def.defaults.hasOwnProperty(d)) {
if (d === 'locked' && !n.locked) {
continue
}
node[d] = n[d];
}
}