Remove 'Copy' from Claim context-menu; Do nothing when menu is blank.
'Copy' is always disabled for the case of Claim previews since no text is selected. User cannot select text anyway since a left-up event would invoke the Claim's `click` event. 'Copy' is there simply because of re-using `openContextMenu`.
This commit is contained in:
parent
cf832d14b4
commit
2f7880a697
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ export function openClaimPreviewMenu(claim, event) {
|
|||
});
|
||||
}
|
||||
|
||||
openContextMenu(event, templates);
|
||||
injectDevelopmentTemplate(event, templates);
|
||||
|
||||
if (templates.length !== 0) {
|
||||
remote.Menu.buildFromTemplate(templates).popup({});
|
||||
}
|
||||
}
|
||||
|
||||
// Block context menu
|
||||
|
|
Loading…
Reference in a new issue