SDA-3970 Add copy capability on links

This commit is contained in:
sbenmoussati 2022-11-18 14:19:47 +01:00 committed by Salah Benmoussati
parent 8bef490b78
commit 9d2fbd56f7

View File

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