mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix empty placeholder not shown on remove from group
This commit is contained in:
parent
81a4f42673
commit
842cd1ecf0
@ -384,8 +384,13 @@ RED.sidebar.info.outliner = (function() {
|
|||||||
} else {
|
} else {
|
||||||
existingObject.element.find(".red-ui-info-outline-item-label").html(" ");
|
existingObject.element.find(".red-ui-info-outline-item-label").html(" ");
|
||||||
}
|
}
|
||||||
if (parent !== existingObject.parent.id) {
|
var oldParent = existingObject.parent;
|
||||||
|
var oldParentID = oldParent.id;
|
||||||
|
if (parent !== oldParentID) {
|
||||||
existingObject.treeList.remove(true);
|
existingObject.treeList.remove(true);
|
||||||
|
if (oldParent.children.length === 0) {
|
||||||
|
objects[oldParentID].treeList.addChild(getEmptyItem(oldParentID));
|
||||||
|
}
|
||||||
if (parent === "__global__") {
|
if (parent === "__global__") {
|
||||||
globalConfigNodes.treeList.addChild(existingObject);
|
globalConfigNodes.treeList.addChild(existingObject);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user