diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-05 10:45:41 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-05-09 11:15:45 +0200 |
commit | 38907cdf6165610f51d48ac94ebe78d753952ff7 (patch) | |
tree | a02a356887f5bc461abaf08e6ec171000df8bc92 /server/sonar-web/src/main/js/apps/web-api/components | |
parent | f6d2629b313ffa71633fecd02bc430e154ca5aba (diff) | |
download | sonarqube-38907cdf6165610f51d48ac94ebe78d753952ff7.tar.gz sonarqube-38907cdf6165610f51d48ac94ebe78d753952ff7.zip |
SONAR-9145 Show the maximum allowed values in the web services page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/web-api/components')
-rw-r--r-- | server/sonar-web/src/main/js/apps/web-api/components/Params.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Params.js b/server/sonar-web/src/main/js/apps/web-api/components/Params.js index 7b362960581..ddb229fee99 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/Params.js +++ b/server/sonar-web/src/main/js/apps/web-api/components/Params.js @@ -35,7 +35,6 @@ export default class Params extends React.PureComponent { const displayedParameters = params .filter(p => showDeprecated || !p.deprecatedSince) .filter(p => showInternal || !p.internal); - return ( <div className="web-api-params"> <table> @@ -109,6 +108,12 @@ export default class Params extends React.PureComponent { <h4>Example value</h4> <code>{param.exampleValue}</code> </div>} + + {param.maxValuesAllowed != null && + <div className="little-spacer-top"> + <h4>Maximum allowed values</h4> + <code>{param.maxValuesAllowed}</code> + </div>} </td> </tr> ))} |