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

Remove add-flow-to-right option if clicked in tab bar

This commit is contained in:
Nick O'Leary 2022-10-31 20:20:05 +00:00
parent fb499be979
commit d8e01584f3
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -161,15 +161,21 @@ RED.workspaces = (function() {
id:"red-ui-tabs-menu-option-add-flow",
label: RED._("workspace.addFlow"),
onselect: "core:add-flow"
},
{
id:"red-ui-tabs-menu-option-add-flow-right",
label: RED._("workspace.addFlowToRight"),
shortcut: RED.keyboard.getShortcut("core:add-flow-to-right"),
onselect: function() {
RED.actions.invoke("core:add-flow-to-right", tab)
}
)
if (isMenuButton || !!tab) {
menuItems.push(
{
id:"red-ui-tabs-menu-option-add-flow-right",
label: RED._("workspace.addFlowToRight"),
shortcut: RED.keyboard.getShortcut("core:add-flow-to-right"),
onselect: function() {
RED.actions.invoke("core:add-flow-to-right", tab)
}
}
},
)
}
menuItems.push(
null,
{
id:"red-ui-tabs-menu-option-add-hide-flows",