diff --git a/frontend/src/pages/Workflows/WorkflowItem.js b/frontend/src/pages/Workflows/WorkflowItem.js index 4ab60a13cc..2c475ffd42 100644 --- a/frontend/src/pages/Workflows/WorkflowItem.js +++ b/frontend/src/pages/Workflows/WorkflowItem.js @@ -9,6 +9,7 @@ import Typography from "@material-ui/core/Typography"; import DoneIcon from "@material-ui/icons/Check"; import EditIcon from "@material-ui/icons/Edit"; import InfoIcon from "@material-ui/icons/InfoOutlined"; +import AttachmentIcon from '@material-ui/icons/Attachment'; import PermissionIcon from "@material-ui/icons/LockOpen"; import MoreIcon from "@material-ui/icons/MoreHoriz"; import OpenIcon from "@material-ui/icons/Remove"; @@ -31,6 +32,14 @@ const styles = theme => { text: { fontSize: "14px" }, + tooltip: { + margin: '0px', + padding: '0px 5px 0px 15px' + }, + tooltipItem: { + fontSize: '12px', + margin: '5px 0' + }, dots: { height: 20, width: 20, @@ -289,6 +298,41 @@ const getInfoButton = (classes, { openWorkflowDetails }, status, workflowSortEna ); }; +const getAttachmentButton = (classes, { openWorkflowDetails }, status, workflowSortEnabled, workflow) => { + const {documents} = workflow; + const showAttachFileBadge = documents && documents.length > 0; + const attachmentFileTooltip = () => showAttachFileBadge && +