From 2f66915a9f6da4d2c49e31235967d2967490048f Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 31 Jan 2022 21:14:07 +0000 Subject: [PATCH] Update node info table based on selection of outliner --- .../src/js/ui/tab-info-outliner.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js index fb393156e..6adfe9eb9 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-info-outliner.js @@ -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); - } else { - // RED.view.select({nodes:[]}) - } + 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.sidebar.info.refresh(null); } }) treeList.on('treelistconfirm', function(e,item) {