diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-17 14:48:35 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-18 11:04:36 +0200 |
commit | 6d7d4ef956d5803dbee32d21d7db553a10e03e97 (patch) | |
tree | b13a2e5651dfa2475f49d90063abe6bc24f6a1da /server/sonar-web | |
parent | 5901e51045ad7f3140e8200bb99b93ffb44fe57b (diff) | |
download | sonarqube-6d7d4ef956d5803dbee32d21d7db553a10e03e97.tar.gz sonarqube-6d7d4ef956d5803dbee32d21d7db553a10e03e97.zip |
SONAR-7271 hide 2 sections from System Info page
Sections "Settings" and "Plugins" are already available in
other administration consoles so they should not be displayed
in System Info page. Still they must be present in WS
api/system/info.
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/apps/system/main.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/main.js b/server/sonar-web/src/main/js/apps/system/main.js index 36f425ed81d..b57a91198a4 100644 --- a/server/sonar-web/src/main/js/apps/system/main.js +++ b/server/sonar-web/src/main/js/apps/system/main.js @@ -24,7 +24,7 @@ import Section from './section'; import { translate } from '../../helpers/l10n'; import RestartModal from '../../components/RestartModal'; -const SECTIONS_ORDER = ['SonarQube', 'Database', 'Plugins', 'System', 'Elasticsearch State', 'Elasticsearch', +const SECTIONS_ORDER = ['SonarQube', 'Database', 'System', 'Elasticsearch State', 'Elasticsearch', 'Compute Engine Tasks', 'Compute Engine State', 'Compute Engine Database Connection', 'JvmProperties']; export default React.createClass({ @@ -61,9 +61,11 @@ export default React.createClass({ render() { let sections = null; if (this.state && this.state.sections) { - sections = this.state.sections.map(section => { - return <Section key={section.name} section={section.name} items={section.items}/>; - }); + sections = this.state.sections + .filter(section => SECTIONS_ORDER.indexOf(section.name)>=0) + .map(section => { + return <Section key={section.name} section={section.name} items={section.items}/>; + }); } return <div className="page"> |