mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Move to the view
thanks @rschamp!
This commit is contained in:
parent
60a62bb374
commit
806fd25e46
2 changed files with 6 additions and 7 deletions
|
@ -763,15 +763,9 @@ module.exports = {
|
|||
return {
|
||||
email: null,
|
||||
invited: false,
|
||||
confirmed: false,
|
||||
educator: true
|
||||
confirmed: false
|
||||
};
|
||||
},
|
||||
componentWillReceiveProps: function (nextProps) {
|
||||
if (nextProps.educator && nextProps.confirmed) {
|
||||
window.location.href = '/educators/classes/';
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
return (
|
||||
<Slide className="registration-step last-step">
|
||||
|
|
|
@ -10,6 +10,11 @@ require('./teacherwaitingroom.scss');
|
|||
|
||||
var TeacherWaitingRoom = React.createClass({
|
||||
displayName: 'TeacherWaitingRoom',
|
||||
componentWillReceiveProps: function (nextProps) {
|
||||
if (nextProps.session.permissions.educator && nextProps.session.permissions.social) {
|
||||
window.location.href = '/educators/classes/';
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
var permissions = this.props.session.permissions || {};
|
||||
var user = this.props.session.user || {};
|
||||
|
|
Loading…
Reference in a new issue