diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index 0e764a868..b44250f21 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -367,6 +367,7 @@ const PreviewPresentation = ({ addToStudioOpen={addToStudioOpen} canReport={canReport} isAdmin={isAdmin} + isShared={isShared} projectInfo={projectInfo} reportOpen={reportOpen} shareDate={shareDate} @@ -515,6 +516,7 @@ const PreviewPresentation = ({ canAddToStudio={canAddToStudio} canReport={canReport} isAdmin={isAdmin} + isShared={isShared} projectInfo={projectInfo} reportOpen={reportOpen} shareDate={shareDate} diff --git a/src/views/preview/subactions.jsx b/src/views/preview/subactions.jsx index 5478d080a..68f9209e9 100644 --- a/src/views/preview/subactions.jsx +++ b/src/views/preview/subactions.jsx @@ -50,19 +50,24 @@ const Subactions = props => ( )} } - - {props.socialOpen && props.projectInfo && props.projectInfo.id && ( - + {/* only show copy link button, modal if project is shared */} + {props.isShared && props.projectInfo && props.projectInfo.id && ( + + + {props.socialOpen && ( + + )} + )} {(props.canReport) && @@ -93,6 +98,7 @@ Subactions.propTypes = { canAddToStudio: PropTypes.bool, canReport: PropTypes.bool, isAdmin: PropTypes.bool, + isShared: PropTypes.bool, onAddToStudioClicked: PropTypes.func, onAddToStudioClosed: PropTypes.func, onReportClicked: PropTypes.func.isRequired,