Skip to content

Commit

Permalink
Update context-actions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Oct 27, 2020
1 parent 232ed8e commit 63902d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions add-on/src/popup/browser-action/context-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ function contextActions ({
text: browser.i18n.getMessage(contextMenuViewOnGateway),
onClick: () => onViewOnGateway(contextMenuViewOnGateway)
}) : null}
${navItem({
${isRedirectContext ? navItem({
text: browser.i18n.getMessage(contextMenuCopyAddressAtPublicGw),
title: browser.i18n.getMessage('panel_copyCurrentPublicGwUrlTooltip'),
helperText: currentTabPublicUrl,
onClick: () => onCopy(contextMenuCopyAddressAtPublicGw)
})}
}) : ''}
${navItem({
text: browser.i18n.getMessage(contextMenuCopyPermalink),
title: browser.i18n.getMessage('panel_copyCurrentPermalinkTooltip'),
helperText: 'foo ' + currentTabPermalink,
onClick: () => onCopy(contextMenuCopyPermalink)
})}
${navItem({
${isRedirectContext ? navItem({
text: browser.i18n.getMessage(contextMenuCopyCanonicalAddress),
title: browser.i18n.getMessage('panelCopy_currentIpnsAddressTooltip'),
helperText: currentTabContentPath,
onClick: () => onCopy(contextMenuCopyCanonicalAddress)
})}
}) : ''}
${navItem({
text: browser.i18n.getMessage(contextMenuCopyCidAddress),
title: browser.i18n.getMessage('panelCopy_currentIpfsAddressTooltip'),
Expand Down

0 comments on commit 63902d2

Please sign in to comment.