fix command comparator and team store

Этот коммит содержится в:
JoramWilander
2015-06-18 12:13:56 -04:00
родитель 19d823f29b
Коммит 4af08121e6
3 изменённых файлов: 28 добавлений и 31 удалений

Просмотреть файл

@@ -33,6 +33,16 @@ var FeatureTab = React.createClass({
this.setState({ allow_valet: val });
this.refs.wrapper.getDOMNode().focus();
},
componentWillReceiveProps: function(newProps) {
var team = newProps.team;
var allow_valet = "false";
if (team && team.allow_valet) {
allow_valet = "true";
}
this.setState({ allow_valet: allow_valet });
},
getInitialState: function() {
var team = this.props.team;