diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-12-08 17:35:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-08 17:35:26 +0100 |
commit | 621544af2b072e21e42b8d4c1c2bd800cbfdd696 (patch) | |
tree | 271306721ea30ca9549a4649eae6059ed5aa4ffa /server/sonar-web/src/main/js/app/components/GlobalContainer.js | |
parent | fb9dd756d3e18058e13384b4119e220d3ae1a43d (diff) | |
download | sonarqube-621544af2b072e21e42b8d4c1c2bd800cbfdd696.tar.gz sonarqube-621544af2b072e21e42b8d4c1c2bd800cbfdd696.zip |
SONAR-8505 Implement smooth transition between pages (#1440)
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/GlobalContainer.js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/GlobalContainer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/GlobalContainer.js b/server/sonar-web/src/main/js/app/components/GlobalContainer.js index da833189128..32b5f620145 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalContainer.js +++ b/server/sonar-web/src/main/js/app/components/GlobalContainer.js @@ -25,11 +25,13 @@ import GlobalMessagesContainer from './GlobalMessagesContainer'; export default class GlobalContainer extends React.Component { render () { + // it is important to pass `location` down to `GlobalNav` to trigger render on url change + return ( <div className="global-container"> <div className="page-wrapper page-wrapper-global" id="container"> <div className="page-container"> - <GlobalNav/> + <GlobalNav location={this.props.location}/> <GlobalMessagesContainer/> {this.props.children} </div> |