X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/df5bb74b46652b2e0a73a0e9ef2c09a63314e409..5a2f4597393f94b9fa7984f4445d4b599c139f27:/src/views-components/context-menu/actions/copy-to-clipboard-action.tsx diff --git a/src/views-components/context-menu/actions/copy-to-clipboard-action.tsx b/src/views-components/context-menu/actions/copy-to-clipboard-action.tsx index fffcc19b..c3408740 100644 --- a/src/views-components/context-menu/actions/copy-to-clipboard-action.tsx +++ b/src/views-components/context-menu/actions/copy-to-clipboard-action.tsx @@ -2,16 +2,16 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from "react"; -import * as copy from 'copy-to-clipboard'; +import React from "react"; +import copy from 'copy-to-clipboard'; import { ListItemIcon, ListItemText, ListItem } from "@material-ui/core"; -import { Link } from "~/components/icon/icon"; +import { Link } from "components/icon/icon"; 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 : null; -}; \ No newline at end of file +};