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:
parent
fb499be979
commit
d8e01584f3
@ -161,15 +161,21 @@ RED.workspaces = (function() {
|
|||||||
id:"red-ui-tabs-menu-option-add-flow",
|
id:"red-ui-tabs-menu-option-add-flow",
|
||||||
label: RED._("workspace.addFlow"),
|
label: RED._("workspace.addFlow"),
|
||||||
onselect: "core:add-flow"
|
onselect: "core:add-flow"
|
||||||
},
|
}
|
||||||
{
|
)
|
||||||
id:"red-ui-tabs-menu-option-add-flow-right",
|
if (isMenuButton || !!tab) {
|
||||||
label: RED._("workspace.addFlowToRight"),
|
menuItems.push(
|
||||||
shortcut: RED.keyboard.getShortcut("core:add-flow-to-right"),
|
{
|
||||||
onselect: function() {
|
id:"red-ui-tabs-menu-option-add-flow-right",
|
||||||
RED.actions.invoke("core:add-flow-to-right", tab)
|
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,
|
null,
|
||||||
{
|
{
|
||||||
id:"red-ui-tabs-menu-option-add-hide-flows",
|
id:"red-ui-tabs-menu-option-add-hide-flows",
|
||||||
|
Loading…
Reference in New Issue
Block a user