]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8291 display internal flag in web api documentation
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 16 Oct 2016 17:35:31 +0000 (19:35 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 17 Oct 2016 09:50:06 +0000 (11:50 +0200)
server/sonar-web/src/main/js/apps/web-api/components/Params.js

index 5d5be6707b3df7825d5e569d7d5af080bada7fab..9b89a7eccd48d6a3bd7f95c595571789754bf7cf 100644 (file)
@@ -19,6 +19,8 @@
  */
 import React from 'react';
 
+import InternalBadge from './InternalBadge';
+
 export default function Params ({ params }) {
   return (
       <div className="web-api-params">
@@ -28,6 +30,11 @@ export default function Params ({ params }) {
               <tr key={param.key}>
                 <td style={{ width: 180 }}>
                   <code>{param.key}</code>
+                  {param.internal && (
+                      <span className="spacer-left">
+                      <InternalBadge/>
+                    </span>
+                  )}
 
                   <div className="note little-spacer-top">
                     {param.required ? 'required' : 'optional'}