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:
infiinte-persistence 2021-02-17 13:55:38 +08:00 committed by Sean Yesmunt
parent cf832d14b4
commit 2f7880a697

View file

@ -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