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

Update node info table based on selection of outliner

This commit is contained in:
Nick O'Leary 2022-01-31 21:14:07 +00:00
parent a508177e21
commit 2f66915a9f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -287,15 +287,18 @@ RED.sidebar.info.outliner = (function() {
data:getFlowData()
})
treeList.on('treelistselect', function(e,item) {
var node = RED.nodes.node(item.id) || RED.nodes.group(item.id);
var node = RED.nodes.node(item.id) || RED.nodes.group(item.id) || RED.nodes.workspace(item.id) || RED.nodes.subflow(item.id);
if (node) {
if (node.type === 'group' || node._def.category !== "config") {
// RED.view.select({nodes:[node]})
} else if (node._def.category === "config") {
RED.sidebar.info.refresh(node);
// if (node.type === 'group' || node._def.category !== "config") {
// // RED.view.select({nodes:[node]})
// } else if (node._def.category === "config") {
// RED.sidebar.info.refresh(node);
// } else {
// // RED.view.select({nodes:[]})
// }
} else {
// RED.view.select({nodes:[]})
}
RED.sidebar.info.refresh(null);
}
})
treeList.on('treelistconfirm', function(e,item) {