Explicitly show a spinner while loading class data

To make this view work consistently with the complete registration view
This commit is contained in:
Ray Schamp 2016-07-25 16:59:55 -04:00
parent 4df4ea8930
commit 74f56d42c5

View file

@ -35,10 +35,12 @@ var StudentRegistration = intl.injectIntl(React.createClass({
});
},
componentDidMount: function () {
this.setState({waiting: true});
api({
uri: '/classrooms/' + this.props.classroomId,
params: {token: this.props.classroomToken}
}, function (err, body, res) {
this.setState({waiting: false});
if (err) {
return this.setState({
registrationError: this.props.intl.formatMessage({