19153: Add support for inline sharing links
[arvados-workbench2.git] / src / views-components / context-menu / actions / copy-to-clipboard-action.tsx
index a1dc59508944a1701258c1d6b9cc29780426030d..c34087400cf5223930b806b358163e470e60741a 100644 (file)
@@ -11,7 +11,7 @@ import { getClipboardUrl } from "./helpers";
 export const CopyToClipboardAction = (props: { href?: any, download?: any, onClick?: () => void, kind?: string, currentCollectionUuid?: string; }) => {
     const copyToClipboard = () => {
         if (props.href) {
-            const clipboardUrl = getClipboardUrl(props.href);
+            const clipboardUrl = getClipboardUrl(props.href, true, true);
             copy(clipboardUrl);
         }
 
@@ -30,4 +30,4 @@ export const CopyToClipboardAction = (props: { href?: any, download?: any, onCli
             </ListItemText>
         </ListItem>
         : null;
-};
\ No newline at end of file
+};