Merge pull request #2957 from LLK/release/05-08-2019

[DEVELOP] Release 05/08/2019
This commit is contained in:
Paul Kaplan 2019-05-16 08:54:35 -04:00 committed by GitHub
commit 109549fd8f
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}
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}

View file

@ -50,13 +50,16 @@ const Subactions = props => (
)}
</React.Fragment>
}
{/* only show copy link button, modal if project is shared */}
{props.isShared && props.projectInfo && props.projectInfo.id && (
<React.Fragment>
<Button
className="action-button copy-link-button"
onClick={props.onSocialClicked}
>
<FormattedMessage id="general.copyLink" />
</Button>
{props.socialOpen && props.projectInfo && props.projectInfo.id && (
{props.socialOpen && (
<SocialModal
isOpen
key="social-modal"
@ -64,6 +67,8 @@ const Subactions = props => (
onRequestClose={props.onSocialClosed}
/>
)}
</React.Fragment>
)}
{(props.canReport) &&
<React.Fragment>
<Button
@ -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,