Commit 74f56d42 authored by Ray Schamp's avatar Ray Schamp

Explicitly show a spinner while loading class data

To make this view work consistently with the complete registration view
parent 4df4ea89
...@@ -35,10 +35,12 @@ var StudentRegistration = intl.injectIntl(React.createClass({ ...@@ -35,10 +35,12 @@ var StudentRegistration = intl.injectIntl(React.createClass({
}); });
}, },
componentDidMount: function () { componentDidMount: function () {
this.setState({waiting: true});
api({ api({
uri: '/classrooms/' + this.props.classroomId, uri: '/classrooms/' + this.props.classroomId,
params: {token: this.props.classroomToken} params: {token: this.props.classroomToken}
}, function (err, body, res) { }, function (err, body, res) {
this.setState({waiting: false});
if (err) { if (err) {
return this.setState({ return this.setState({
registrationError: this.props.intl.formatMessage({ registrationError: this.props.intl.formatMessage({
......
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