From 6d7d4ef956d5803dbee32d21d7db553a10e03e97 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 17 May 2016 14:48:35 +0200 Subject: [PATCH] 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. --- server/sonar-web/src/main/js/apps/system/main.js | 10 ++++++---- 1 file 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
; - }); + sections = this.state.sections + .filter(section => SECTIONS_ORDER.indexOf(section.name)>=0) + .map(section => { + return
; + }); } return
-- 2.39.5