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

Show node help when switching node edit dialogs

Fixes #2652
This commit is contained in:
Nick O'Leary 2020-07-16 16:12:16 +01:00
parent 98c7364924
commit 82677c304e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 7 additions and 3 deletions

View File

@ -1630,6 +1630,7 @@ RED.editor = (function() {
show: function() { show: function() {
if (editing_node) { if (editing_node) {
RED.sidebar.info.refresh(editing_node); RED.sidebar.info.refresh(editing_node);
RED.sidebar.help.show(editing_node.type, false);
} }
} }
} }
@ -1836,6 +1837,7 @@ RED.editor = (function() {
show: function() { show: function() {
if (editing_config_node) { if (editing_config_node) {
RED.sidebar.info.refresh(editing_config_node); RED.sidebar.info.refresh(editing_config_node);
RED.sidebar.help.show(type, false);
} }
} }
} }

View File

@ -261,10 +261,12 @@ RED.sidebar.help = (function() {
} }
function show(type) { function show(type, bringToFront) {
if (bringToFront !== false) {
RED.sidebar.show("help"); RED.sidebar.show("help");
}
if (type) { if (type) {
hideTOC(); // hideTOC();
showHelp(type); showHelp(type);
} }
resizeStack(); resizeStack();