From f9f4b9a761c2377082ccc529aa3f27573cb457ff Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 5 Sep 2016 15:21:16 +0200 Subject: [PATCH] hide licenses on settings page --- server/sonar-web/src/main/js/apps/settings/store/actions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/settings/store/actions.js b/server/sonar-web/src/main/js/apps/settings/store/actions.js index f2ba7d709e6..9df87830936 100644 --- a/server/sonar-web/src/main/js/apps/settings/store/actions.js +++ b/server/sonar-web/src/main/js/apps/settings/store/actions.js @@ -30,8 +30,9 @@ import { getDefinition, getChangedValue } from './rootReducer'; export const fetchSettings = componentKey => dispatch => { return getDefinitions(componentKey) .then(definitions => { - dispatch(receiveDefinitions(definitions)); - const keys = definitions.map(definition => definition.key).join(); + const withoutLicenses = definitions.filter(definition => definition.type !== 'LICENSE'); + dispatch(receiveDefinitions(withoutLicenses)); + const keys = withoutLicenses.map(definition => definition.key).join(); return getValues(keys, componentKey); }) .then(settings => { -- 2.39.5