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

Fix lint errors in contextMenu

This commit is contained in:
Nick O'Leary 2022-06-16 14:37:48 +01:00
parent 0eba4bdd61
commit ad32677263
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -103,14 +103,14 @@ RED.contextMenu = (function() {
{ onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !RED.view.clipboard() }, { onselect: 'core:paste-from-internal-clipboard', label: RED._("keyboard.pasteNode"), disabled: !RED.view.clipboard() },
{ onselect: 'core:delete-selection', disabled: !canDelete }, { onselect: 'core:delete-selection', disabled: !canDelete },
{ onselect: 'core:show-export-dialog', label: RED._("menu.label.export") }, { onselect: 'core:show-export-dialog', label: RED._("menu.label.export") },
{ onselect: 'core:select-all-nodes' }, { onselect: 'core:select-all-nodes' }
) )
if (hasSelection) { if (hasSelection) {
menuItems.push( menuItems.push(
null, null,
isGroup isGroup ?
? { onselect: 'core:ungroup-selection', disabled: !isGroup } { onselect: 'core:ungroup-selection', disabled: !isGroup }
: { onselect: 'core:group-selection', disabled: !hasSelection } : { onselect: 'core:group-selection', disabled: !hasSelection }
) )
if (canRemoveFromGroup) { if (canRemoveFromGroup) {