Skip to content

Commit e897a5d

Browse files
perform node validation adter addition (#755)
1 parent d359fc0 commit e897a5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nodes/ui_base.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@
514514
label: function() { return this.name + " " + this.width + "x" + this.height; }
515515
};
516516
RED.nodes.add(spaceNode);
517+
RED.editor.validateNode(spaceNode);
517518
RED.nodes.dirty(true);
518519
RED.view.redraw(true);
519520
}
@@ -1130,6 +1131,7 @@
11301131
users: []
11311132
}
11321133
RED.nodes.add(globalDashboardNode);
1134+
RED.editor.validateNode(globalDashboardNode);
11331135
}
11341136
else {
11351137
globalDashboardNode["_def"] = RED.nodes.getType("ui_base");
@@ -1857,6 +1859,7 @@
18571859
item.groups = [];
18581860
}
18591861
RED.nodes.add(item.node);
1862+
RED.editor.validateNode(item.node);
18601863
RED.history.push({
18611864
t:'add',
18621865
nodes:[item.node.id],
@@ -2179,6 +2182,7 @@
21792182
};
21802183
listElements[group.node.id] = container;
21812184
RED.nodes.add(group.node);
2185+
RED.editor.validateNode(group.node);
21822186
group.widgets = [];
21832187
RED.history.push({
21842188
t:'add',
@@ -2467,6 +2471,7 @@
24672471
icon: "dashboard"
24682472
};
24692473
RED.nodes.add(tab);
2474+
RED.editor.validateNode(tab);
24702475
hev.push(tab.id);
24712476
}
24722477
for (var groupId in unknownGroups) {

0 commit comments

Comments
 (0)