Re-organizing components to be more modular, adding loading bars
This commit is contained in:
1 parent
f820edb463
commit
337462aa5e
31 files changed
+155
-126
No files matched your search
@@ -31,12 +31,12 @@ const Status = React.createClass({
|
||||
mixins: [PureRenderMixin],
|
||||
|
||||
componentWillMount () {
|
||||
this.props.dispatch(fetchStatus(this.props.params.statusId));
|
||||
this.props.dispatch(fetchStatus(Number(this.props.params.statusId)));
|
||||
},
|
||||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
|
||||
this.props.dispatch(fetchStatus(nextProps.params.statusId));
|
||||
this.props.dispatch(fetchStatus(Number(nextProps.params.statusId)));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user