mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-25 12:20:24 -04:00
Explicitly show a spinner while loading class data
To make this view work consistently with the complete registration view
This commit is contained in:
parent
4df4ea8930
commit
74f56d42c5
1 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue