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}
|
||||
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}
|
||||
|
|
|
@ -50,19 +50,24 @@ const Subactions = props => (
|
|||
)}
|
||||
</React.Fragment>
|
||||
}
|
||||
<Button
|
||||
className="action-button copy-link-button"
|
||||
onClick={props.onSocialClicked}
|
||||
>
|
||||
<FormattedMessage id="general.copyLink" />
|
||||
</Button>
|
||||
{props.socialOpen && props.projectInfo && props.projectInfo.id && (
|
||||
<SocialModal
|
||||
isOpen
|
||||
key="social-modal"
|
||||
projectId={props.projectInfo && props.projectInfo.id}
|
||||
onRequestClose={props.onSocialClosed}
|
||||
/>
|
||||
{/* 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 && (
|
||||
<SocialModal
|
||||
isOpen
|
||||
key="social-modal"
|
||||
projectId={props.projectInfo && props.projectInfo.id}
|
||||
onRequestClose={props.onSocialClosed}
|
||||
/>
|
||||
)}
|
||||
</React.Fragment>
|
||||
)}
|
||||
{(props.canReport) &&
|
||||
<React.Fragment>
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue