mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #2957 from LLK/release/05-08-2019
[DEVELOP] Release 05/08/2019
This commit is contained in:
commit
109549fd8f
2 changed files with 21 additions and 13 deletions
|
@ -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}
|
||||||
|
|
|
@ -50,19 +50,24 @@ const Subactions = props => (
|
||||||
)}
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
<Button
|
{/* only show copy link button, modal if project is shared */}
|
||||||
className="action-button copy-link-button"
|
{props.isShared && props.projectInfo && props.projectInfo.id && (
|
||||||
onClick={props.onSocialClicked}
|
<React.Fragment>
|
||||||
>
|
<Button
|
||||||
<FormattedMessage id="general.copyLink" />
|
className="action-button copy-link-button"
|
||||||
</Button>
|
onClick={props.onSocialClicked}
|
||||||
{props.socialOpen && props.projectInfo && props.projectInfo.id && (
|
>
|
||||||
<SocialModal
|
<FormattedMessage id="general.copyLink" />
|
||||||
isOpen
|
</Button>
|
||||||
key="social-modal"
|
{props.socialOpen && (
|
||||||
projectId={props.projectInfo && props.projectInfo.id}
|
<SocialModal
|
||||||
onRequestClose={props.onSocialClosed}
|
isOpen
|
||||||
/>
|
key="social-modal"
|
||||||
|
projectId={props.projectInfo && props.projectInfo.id}
|
||||||
|
onRequestClose={props.onSocialClosed}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
{(props.canReport) &&
|
{(props.canReport) &&
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue