Merge pull request #4030 from node-red-hitachi/disable-delete-tab-menu-when-single-tab-exists

Disable delete tab menu when single tab exists
This commit is contained in:
Nick O'Leary
2023-01-30 09:38:16 +00:00
committed by GitHub

View File

@@ -266,7 +266,8 @@ RED.workspaces = (function() {
} else if (tab.type === 'subflow') { } else if (tab.type === 'subflow') {
RED.subflow.delete(tab.id) RED.subflow.delete(tab.id)
} }
} },
disabled: (workspaceTabCount === 1)
}, },
{ {
label: RED._("menu.label.export"), label: RED._("menu.label.export"),