Merge pull request #2979 from LLK/develop

Update release branch to bring in last weeks unreleased changes
This commit is contained in:
Paul Kaplan 2019-05-16 08:56:29 -04:00 committed by GitHub
commit 02419f9d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 13 deletions

View file

@ -367,6 +367,7 @@ const PreviewPresentation = ({
addToStudioOpen={addToStudioOpen} addToStudioOpen={addToStudioOpen}
canReport={canReport} canReport={canReport}
isAdmin={isAdmin} isAdmin={isAdmin}
isShared={isShared}
projectInfo={projectInfo} projectInfo={projectInfo}
reportOpen={reportOpen} reportOpen={reportOpen}
shareDate={shareDate} shareDate={shareDate}
@ -515,6 +516,7 @@ const PreviewPresentation = ({
canAddToStudio={canAddToStudio} canAddToStudio={canAddToStudio}
canReport={canReport} canReport={canReport}
isAdmin={isAdmin} isAdmin={isAdmin}
isShared={isShared}
projectInfo={projectInfo} projectInfo={projectInfo}
reportOpen={reportOpen} reportOpen={reportOpen}
shareDate={shareDate} shareDate={shareDate}

View file

@ -50,13 +50,16 @@ const Subactions = props => (
)} )}
</React.Fragment> </React.Fragment>
} }
{/* only show copy link button, modal if project is shared */}
{props.isShared && props.projectInfo && props.projectInfo.id && (
<React.Fragment>
<Button <Button
className="action-button copy-link-button" className="action-button copy-link-button"
onClick={props.onSocialClicked} onClick={props.onSocialClicked}
> >
<FormattedMessage id="general.copyLink" /> <FormattedMessage id="general.copyLink" />
</Button> </Button>
{props.socialOpen && props.projectInfo && props.projectInfo.id && ( {props.socialOpen && (
<SocialModal <SocialModal
isOpen isOpen
key="social-modal" key="social-modal"
@ -64,6 +67,8 @@ const Subactions = props => (
onRequestClose={props.onSocialClosed} onRequestClose={props.onSocialClosed}
/> />
)} )}
</React.Fragment>
)}
{(props.canReport) && {(props.canReport) &&
<React.Fragment> <React.Fragment>
<Button <Button
@ -93,6 +98,7 @@ Subactions.propTypes = {
canAddToStudio: PropTypes.bool, canAddToStudio: PropTypes.bool,
canReport: PropTypes.bool, canReport: PropTypes.bool,
isAdmin: PropTypes.bool, isAdmin: PropTypes.bool,
isShared: PropTypes.bool,
onAddToStudioClicked: PropTypes.func, onAddToStudioClicked: PropTypes.func,
onAddToStudioClosed: PropTypes.func, onAddToStudioClosed: PropTypes.func,
onReportClicked: PropTypes.func.isRequired, onReportClicked: PropTypes.func.isRequired,