mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 10:20:16 -06:00
SDA-3970 Add copy capability on links
This commit is contained in:
parent
8bef490b78
commit
9d2fbd56f7
@ -192,6 +192,7 @@ export class ContextMenuBuilder {
|
|||||||
public buildMenuForLink(menuInfo) {
|
public buildMenuForLink(menuInfo) {
|
||||||
const menu = new Menu();
|
const menu = new Menu();
|
||||||
const isEmailAddress = menuInfo.linkURL.startsWith('mailto:');
|
const isEmailAddress = menuInfo.linkURL.startsWith('mailto:');
|
||||||
|
this.addCopy(menu, menuInfo);
|
||||||
const copyLink = new MenuItem({
|
const copyLink = new MenuItem({
|
||||||
label: isEmailAddress
|
label: isEmailAddress
|
||||||
? this.stringTable.copyMail()
|
? this.stringTable.copyMail()
|
||||||
|
Loading…
Reference in New Issue
Block a user