aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-17 16:30:21 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commite013b2b9a6f1afb120722eaf422081a136eb0cfd (patch)
tree893525b1a2aca7d6cb67f0677352be5c925d9d1f /server/sonar-web/src/main/js/app
parentbff95ad641af2546712ea61d38a259f0847343c5 (diff)
downloadsonarqube-e013b2b9a6f1afb120722eaf422081a136eb0cfd.tar.gz
sonarqube-e013b2b9a6f1afb120722eaf422081a136eb0cfd.zip
SONAR-9936 Update marketplace pending plugins notif
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx
index 7f7632d6630..34dc8b4f72c 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/SettingsNav.tsx
@@ -61,6 +61,11 @@ export default class SettingsNav extends React.PureComponent<Props> {
return this.isSomethingActive(urls);
}
+ isMarketplace() {
+ const urls = ['/admin/marketplace'];
+ return this.isSomethingActive(urls);
+ }
+
renderExtension = ({ key, name }: Extension) => {
return (
<li key={key}>
@@ -82,7 +87,7 @@ export default class SettingsNav extends React.PureComponent<Props> {
const projectsClassName = classNames('dropdown-toggle', { active: isProjects });
const systemClassName = classNames('dropdown-toggle', { active: isSystem });
const configurationClassNames = classNames('dropdown-toggle', {
- active: !isSecurity && !isProjects && !isSystem && !isSupport
+ active: !isSecurity && !isProjects && !isSystem && !isSupport && !this.isMarketplace()
});
const extensionsWithoutSupport = extensions.filter(