diff options
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/App.js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/App.js | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/app/components/App.js b/server/sonar-web/src/main/js/app/components/App.js index db7f3aecaa2..647acffd144 100644 --- a/server/sonar-web/src/main/js/app/components/App.js +++ b/server/sonar-web/src/main/js/app/components/App.js @@ -45,32 +45,36 @@ class App extends React.Component { } }; - componentDidMount () { + componentDidMount() { this.mounted = true; - this.props.fetchCurrentUser() - .then(() => Promise.all([ + this.props + .fetchCurrentUser() + .then(() => + Promise.all([ this.props.fetchAppState(), this.props.fetchOrganizations(), this.props.fetchLanguages() ])) - .then(this.finishLoading, this.finishLoading); + .then(this.finishLoading, this.finishLoading); } - componentWillUnmount () { + componentWillUnmount() { this.mounted = false; } - render () { + render() { if (this.state.loading) { - return <GlobalLoading/>; + return <GlobalLoading />; } return this.props.children; } } -export default connect( - null, - { fetchAppState, fetchCurrentUser, fetchLanguages, fetchOrganizations } -)(App); +export default connect(null, { + fetchAppState, + fetchCurrentUser, + fetchLanguages, + fetchOrganizations +})(App); |