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

Allow node edit dialog to be opened on a non-default tab

This commit is contained in:
Nick O'Leary 2020-05-01 17:37:42 +01:00
parent 597c4a2e4f
commit 73dde4de51
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1086,7 +1086,7 @@ RED.editor = (function() {
return nodeInfoEditor;
}
function showEditDialog(node) {
function showEditDialog(node, defaultTab) {
var editing_node = node;
var isDefaultIcon;
var defaultIcon;
@ -1604,6 +1604,9 @@ RED.editor = (function() {
prepareEditDialog(node,node._def,"node-input", function() {
trayBody.i18n();
finishedBuilding = true;
if (defaultTab) {
editorTabs.activateTab(defaultTab);
}
done();
});
},