mirror of https://github.com/vector-im/riot-web
Ensure that loading state is reset when showing app panel.
parent
f796bc79c3
commit
da8b1ff1cd
|
@ -176,6 +176,10 @@ export default React.createClass({
|
|||
if (nextProps.url !== this.props.url) {
|
||||
this._getNewUrlState(nextProps);
|
||||
this.setScalarToken();
|
||||
} else if (nextProps.show && !this.props.show) {
|
||||
this.setState({
|
||||
loading: true,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue