Commit d243b5da authored by Ray Schamp's avatar Ray Schamp

Allow the iframe to close the parent admin panel

parent e41cd84f
......@@ -282,6 +282,8 @@ class Preview extends React.Component {
adminModalOpen: false
});
}
if (messageEvent.data === 'openPanel') this.handleOpenAdminPanel();
if (messageEvent.data === 'closePanel') this.handleCloseAdminPanel();
}
handleReportComment (id, topLevelCommentId) {
this.props.handleReportComment(this.state.projectId, id, topLevelCommentId, this.props.user.token);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment