Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

GET /teams from RTS instead of config.json #658

Merged
merged 6 commits into from
Jan 30, 2017
Merged

Conversation

lukebarnard1
Copy link
Contributor

Now that the RTS contains config for teams, use GET /teams to get that information so that users will see be able to register as a team (but not yet auto-join rooms, be sent to welcome page or be tracked as a referral).

Now that the RTS contains config for teams, use GET /teams to get that information so that users will see be able to register as a team (but not yet auto-join rooms, be sent to welcome page or be tracked as a referral).
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait until we've fetched the teams config before showing the registration form?


if (this.props.teamServerConfig &&
this.props.teamServerConfig.teamServerURL &&
!this._rtsClient) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our usual indenting style here would be:

if (
    this.props.teamServerConfig &&
    [...]
) {
}

@lukebarnard1
Copy link
Contributor Author

We could make the component busy until the data arrives?

@dbkr
Copy link
Member

dbkr commented Jan 30, 2017

Probably ought to

@lukebarnard1 lukebarnard1 assigned dbkr and unassigned lukebarnard1 Jan 30, 2017
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise lgtm

}).finally(() => {
this.setState({
teamServerBusy: false,
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still want a .done() on the end to catch stray exceptions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok, thanks

@@ -297,6 +307,8 @@ module.exports = React.createClass({
},

_getRegisterContentJsx: function() {
var Spinner = sdk.getComponent("elements.Spinner");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also const please

@dbkr dbkr merged commit 9c99e78 into develop Jan 30, 2017
@lukebarnard1 lukebarnard1 deleted the luke/rts-get-teams branch January 30, 2017 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants