Auto focus newly created server

This commit is contained in:
Jonas Schwabe 2017-01-22 15:54:13 +01:00
parent 9d119274ee
commit be2db91d05

View file

@ -315,10 +315,11 @@ const MainPage = React.createClass({
}); });
}} }}
onSave={(newTeam) => { onSave={(newTeam) => {
this.setState({
showNewTeamModal: false
});
this.props.teams.push(newTeam); this.props.teams.push(newTeam);
this.setState({
showNewTeamModal: false,
key: this.props.teams.length - 1
});
this.render(); this.render();
this.props.onTeamConfigChange(this.props.teams); this.props.onTeamConfigChange(this.props.teams);
}} }}