mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Allow the iframe to close the parent admin panel
This commit is contained in:
parent
e41cd84f09
commit
d243b5dad7
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,8 @@ class Preview extends React.Component {
|
||||||
adminModalOpen: false
|
adminModalOpen: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (messageEvent.data === 'openPanel') this.handleOpenAdminPanel();
|
||||||
|
if (messageEvent.data === 'closePanel') this.handleCloseAdminPanel();
|
||||||
}
|
}
|
||||||
handleReportComment (id, topLevelCommentId) {
|
handleReportComment (id, topLevelCommentId) {
|
||||||
this.props.handleReportComment(this.state.projectId, id, topLevelCommentId, this.props.user.token);
|
this.props.handleReportComment(this.state.projectId, id, topLevelCommentId, this.props.user.token);
|
||||||
|
|
Loading…
Reference in a new issue