diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-05-09 14:36:39 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-06-03 20:21:18 +0200 |
commit | 41b935a39f1d3358f3baa9ff91231f9fa2571697 (patch) | |
tree | f8b77072dc1d940ed9dc05ebd4965b36878a72a2 /server/sonar-web/src/main/js/apps/marketplace | |
parent | ac64b4fe18f42fdbc1d54c3409cee2a74e234051 (diff) | |
download | sonarqube-41b935a39f1d3358f3baa9ff91231f9fa2571697.tar.gz sonarqube-41b935a39f1d3358f3baa9ff91231f9fa2571697.zip |
SONAR-12055 Display administration navbar notification when restarting the server
Diffstat (limited to 'server/sonar-web/src/main/js/apps/marketplace')
-rw-r--r-- | server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx b/server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx index ddc98ec0349..6092a120d3f 100644 --- a/server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx +++ b/server/sonar-web/src/main/js/apps/marketplace/AppContainer.tsx @@ -22,7 +22,7 @@ import { connect } from 'react-redux'; import App from './App'; import { getAppState, getGlobalSettingValue, Store } from '../../store/rootReducer'; import { RawQuery } from '../../helpers/query'; -import MarketplaceContext from '../../app/components/MarketplaceContext'; +import AdminContext from '../../app/components/AdminContext'; interface OwnProps { location: { pathname: string; query: RawQuery }; @@ -43,12 +43,12 @@ const mapStateToProps = (state: Store) => { }; }; -const WithMarketplaceContext = (props: StateToProps & OwnProps) => ( - <MarketplaceContext.Consumer> +const WithAdminContext = (props: StateToProps & OwnProps) => ( + <AdminContext.Consumer> {({ fetchPendingPlugins, pendingPlugins }) => ( <App fetchPendingPlugins={fetchPendingPlugins} pendingPlugins={pendingPlugins} {...props} /> )} - </MarketplaceContext.Consumer> + </AdminContext.Consumer> ); -export default connect(mapStateToProps)(WithMarketplaceContext); +export default connect(mapStateToProps)(WithAdminContext); |