mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -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 {
|
return {
|
||||||
email: null,
|
email: null,
|
||||||
invited: false,
|
invited: false,
|
||||||
confirmed: false,
|
confirmed: false
|
||||||
educator: true
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
componentWillReceiveProps: function (nextProps) {
|
|
||||||
if (nextProps.educator && nextProps.confirmed) {
|
|
||||||
window.location.href = '/educators/classes/';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
render: function () {
|
render: function () {
|
||||||
return (
|
return (
|
||||||
<Slide className="registration-step last-step">
|
<Slide className="registration-step last-step">
|
||||||
|
|
|
@ -10,6 +10,11 @@ require('./teacherwaitingroom.scss');
|
||||||
|
|
||||||
var TeacherWaitingRoom = React.createClass({
|
var TeacherWaitingRoom = React.createClass({
|
||||||
displayName: 'TeacherWaitingRoom',
|
displayName: 'TeacherWaitingRoom',
|
||||||
|
componentWillReceiveProps: function (nextProps) {
|
||||||
|
if (nextProps.session.permissions.educator && nextProps.session.permissions.social) {
|
||||||
|
window.location.href = '/educators/classes/';
|
||||||
|
}
|
||||||
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
var permissions = this.props.session.permissions || {};
|
var permissions = this.props.session.permissions || {};
|
||||||
var user = this.props.session.user || {};
|
var user = this.props.session.user || {};
|
||||||
|
|
Loading…
Reference in a new issue