aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-11 17:32:30 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit847b1833f8f86657e9ddc206fab04e29ec5dbdc9 (patch)
tree1384b20f4716865607837808daba49a9a23b526c /server/sonar-web/src/main/js/app
parentddb6f1e13ff2cde359672c1df474c5b6e6f137da (diff)
downloadsonarqube-847b1833f8f86657e9ddc206fab04e29ec5dbdc9.tar.gz
sonarqube-847b1833f8f86657e9ddc206fab04e29ec5dbdc9.zip
SONAR-9935 Migrate Update center to Marketplace
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js6
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.js.snap8
-rw-r--r--server/sonar-web/src/main/js/app/utils/startReactApp.js2
3 files changed, 16 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
index 69cbec3e6dd..e307778eec4 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.js
@@ -192,6 +192,12 @@ class SettingsNav extends React.PureComponent {
</ul>
</li>
+ <li>
+ <IndexLink to="/admin/marketplace" activeClassName="active">
+ {translate('marketplace.page')}
+ </IndexLink>
+ </li>
+
{hasSupportExtension && (
<li>
<IndexLink to="/admin/extension/license/support" activeClassName="active">
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.js.snap b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.js.snap
index d70451a6f1d..62c113f24bb 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.js.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.js.snap
@@ -188,6 +188,14 @@ exports[`should work with extensions 1`] = `
</li>
</ul>
</li>
+ <li>
+ <IndexLink
+ activeClassName="active"
+ to="/admin/marketplace"
+ >
+ marketplace.page
+ </IndexLink>
+ </li>
</NavBarTabs>
</ContextNavBar>
`;
diff --git a/server/sonar-web/src/main/js/app/utils/startReactApp.js b/server/sonar-web/src/main/js/app/utils/startReactApp.js
index 06dc6283e04..b71489f5e86 100644
--- a/server/sonar-web/src/main/js/app/utils/startReactApp.js
+++ b/server/sonar-web/src/main/js/app/utils/startReactApp.js
@@ -48,6 +48,7 @@ import componentMeasuresRoutes from '../../apps/component-measures/routes';
import customMeasuresRoutes from '../../apps/custom-measures/routes';
import groupsRoutes from '../../apps/groups/routes';
import issuesRoutes from '../../apps/issues/routes';
+import marketplaceRoutes from '../../apps/marketplace/routes';
import metricsRoutes from '../../apps/metrics/routes';
import overviewRoutes from '../../apps/overview/routes';
import organizationsRoutes from '../../apps/organizations/routes';
@@ -227,6 +228,7 @@ const startReactApp = () => {
<Route path="settings" childRoutes={settingsRoutes} />
<Route path="system" childRoutes={systemRoutes} />
<Route path="update_center" childRoutes={updateCenterRoutes} />
+ <Route path="marketplace" childRoutes={marketplaceRoutes} />
<Route path="users" childRoutes={usersRoutes} />
</Route>
</Route>