mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Allow default tab to be specified when editing flows/groups/subflows
This commit is contained in:
parent
2c456f044f
commit
d4e1469450
@ -1409,7 +1409,7 @@ RED.editor = (function() {
|
|||||||
RED.tray.show(trayOptions);
|
RED.tray.show(trayOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showEditSubflowDialog(subflow) {
|
function showEditSubflowDialog(subflow, defaultTab) {
|
||||||
if (buildingEditDialog) { return }
|
if (buildingEditDialog) { return }
|
||||||
buildingEditDialog = true;
|
buildingEditDialog = true;
|
||||||
var editing_node = subflow;
|
var editing_node = subflow;
|
||||||
@ -1549,7 +1549,7 @@ RED.editor = (function() {
|
|||||||
'editor-tab-appearance'
|
'editor-tab-appearance'
|
||||||
];
|
];
|
||||||
|
|
||||||
prepareEditDialog(trayBody, nodeEditPanes, subflow, subflow._def, "node-input", null, function(_activeEditPanes) {
|
prepareEditDialog(trayBody, nodeEditPanes, subflow, subflow._def, "node-input", defaultTab, function(_activeEditPanes) {
|
||||||
activeEditPanes = _activeEditPanes;
|
activeEditPanes = _activeEditPanes;
|
||||||
$("#subflow-input-name").val(subflow.name);
|
$("#subflow-input-name").val(subflow.name);
|
||||||
RED.text.bidi.prepareInput($("#subflow-input-name"));
|
RED.text.bidi.prepareInput($("#subflow-input-name"));
|
||||||
@ -1579,7 +1579,7 @@ RED.editor = (function() {
|
|||||||
RED.tray.show(trayOptions);
|
RED.tray.show(trayOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showEditGroupDialog(group) {
|
function showEditGroupDialog(group, defaultTab) {
|
||||||
if (buildingEditDialog) { return }
|
if (buildingEditDialog) { return }
|
||||||
buildingEditDialog = true;
|
buildingEditDialog = true;
|
||||||
var editing_node = group;
|
var editing_node = group;
|
||||||
@ -1661,7 +1661,7 @@ RED.editor = (function() {
|
|||||||
'editor-tab-envProperties',
|
'editor-tab-envProperties',
|
||||||
'editor-tab-description'
|
'editor-tab-description'
|
||||||
];
|
];
|
||||||
prepareEditDialog(trayBody, nodeEditPanes, group,group._def,"node-input", null, function(_activeEditPanes) {
|
prepareEditDialog(trayBody, nodeEditPanes, group,group._def,"node-input", defaultTab, function(_activeEditPanes) {
|
||||||
activeEditPanes = _activeEditPanes;
|
activeEditPanes = _activeEditPanes;
|
||||||
trayBody.i18n();
|
trayBody.i18n();
|
||||||
buildingEditDialog = false;
|
buildingEditDialog = false;
|
||||||
@ -1692,7 +1692,7 @@ RED.editor = (function() {
|
|||||||
RED.tray.show(trayOptions);
|
RED.tray.show(trayOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showEditFlowDialog(workspace) {
|
function showEditFlowDialog(workspace, defaultTab) {
|
||||||
if (buildingEditDialog) { return }
|
if (buildingEditDialog) { return }
|
||||||
buildingEditDialog = true;
|
buildingEditDialog = true;
|
||||||
var activeEditPanes = [];
|
var activeEditPanes = [];
|
||||||
@ -1796,8 +1796,7 @@ RED.editor = (function() {
|
|||||||
disabledIcon: "fa-ban",
|
disabledIcon: "fa-ban",
|
||||||
invertState: true
|
invertState: true
|
||||||
})
|
})
|
||||||
|
prepareEditDialog(trayBody, nodeEditPanes, workspace, {}, "node-input", defaultTab, function(_activeEditPanes) {
|
||||||
prepareEditDialog(trayBody, nodeEditPanes, workspace, {}, "node-input", null, function(_activeEditPanes) {
|
|
||||||
activeEditPanes = _activeEditPanes;
|
activeEditPanes = _activeEditPanes;
|
||||||
trayBody.i18n();
|
trayBody.i18n();
|
||||||
trayFooter.i18n();
|
trayFooter.i18n();
|
||||||
|
Loading…
Reference in New Issue
Block a user