]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9145 Show the maximum allowed values in the web services page
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Fri, 5 May 2017 08:45:41 +0000 (10:45 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Tue, 9 May 2017 09:15:45 +0000 (11:15 +0200)
server/sonar-web/src/main/js/apps/web-api/components/Params.js

index 7b3629605811c37915d1907c4eaaa66392365126..ddb229fee99a6f0def3bfc77d4268f03d39eb448 100644 (file)
@@ -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>
             ))}