X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/78fd0936352c6f50f06bd0c6f9973bccc1ac0d51..a3d23b09663e49a187f3505f1dd41c97f3d79d51:/src/views-components/process-command-dialog/process-command-dialog.tsx diff --git a/src/views-components/process-command-dialog/process-command-dialog.tsx b/src/views-components/process-command-dialog/process-command-dialog.tsx index 4bde68d8..f6f02a5b 100644 --- a/src/views-components/process-command-dialog/process-command-dialog.tsx +++ b/src/views-components/process-command-dialog/process-command-dialog.tsx @@ -3,20 +3,25 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from "react"; -import { Dialog, DialogTitle, DialogActions, Button, StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core'; +import { Dialog, DialogActions, Button, StyleRulesCallback, WithStyles, withStyles, Tooltip, IconButton, CardHeader } from '@material-ui/core'; import { withDialog } from "~/store/dialog/with-dialog"; import { PROCESS_COMMAND_DIALOG_NAME } from '~/store/processes/process-command-actions'; import { WithDialogProps } from '~/store/dialog/with-dialog'; import { ProcessCommandDialogData } from '~/store/processes/process-command-actions'; import { DefaultCodeSnippet } from "~/components/default-code-snippet/default-code-snippet"; import { compose } from 'redux'; +import * as CopyToClipboard from "react-copy-to-clipboard"; +import { CopyIcon } from '~/components/icon/icon'; -type CssRules = 'codeSnippet'; +type CssRules = 'codeSnippet' | 'copyToClipboard'; const styles: StyleRulesCallback = theme => ({ codeSnippet: { marginLeft: theme.spacing.unit * 3, marginRight: theme.spacing.unit * 3, + }, + copyToClipboard: { + marginRight: theme.spacing.unit, } }); @@ -30,13 +35,23 @@ export const ProcessCommandDialog = compose( maxWidth="md" onClose={props.closeDialog} style={{ alignSelf: 'stretch' }}> - {`Command - ${props.data.processName}`} + + + + + + + + } />