]> source.dussan.org Git - sonarqube.git/commitdiff
reorder columns on code/projects page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 6 Apr 2016 12:32:08 +0000 (14:32 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 6 Apr 2016 12:32:17 +0000 (14:32 +0200)
server/sonar-web/src/main/js/apps/code/components/Component.js
server/sonar-web/src/main/js/apps/code/components/ComponentsHeader.js

index 34d0f04713e332575e693e863bb40b5129c2cd04..47efb73c58cc1fe97d9b1ea8dd506c36bc3d608c 100644 (file)
@@ -106,7 +106,7 @@ class Component extends React.Component {
             <div className="code-components-cell">
               <ComponentMeasure
                   component={component}
-                  metricKey="code_smells"
+                  metricKey="bugs"
                   metricType="SHORT_INT"/>
             </div>
           </td>
@@ -114,7 +114,7 @@ class Component extends React.Component {
             <div className="code-components-cell">
               <ComponentMeasure
                   component={component}
-                  metricKey="bugs"
+                  metricKey="vulnerabilities"
                   metricType="SHORT_INT"/>
             </div>
           </td>
@@ -122,7 +122,7 @@ class Component extends React.Component {
             <div className="code-components-cell">
               <ComponentMeasure
                   component={component}
-                  metricKey="vulnerabilities"
+                  metricKey="code_smells"
                   metricType="SHORT_INT"/>
             </div>
           </td>
index 16bd1e5966d590b8884cdf9e9fe5d116cb0508ca..bbe0b097494d776961dbd5f34bc657cc6b1fa28a 100644 (file)
@@ -29,15 +29,15 @@ const ComponentsHeader = ({ baseComponent }) => (
         <th className="thin nowrap text-right code-components-cell">
           {baseComponent && translate('metric.ncloc.name')}
         </th>
-        <th className="thin nowrap text-right code-components-cell">
-          {baseComponent && translate('metric.code_smells.name')}
-        </th>
         <th className="thin nowrap text-right code-components-cell">
           {baseComponent && translate('metric.bugs.name')}
         </th>
         <th className="thin nowrap text-right code-components-cell">
           {baseComponent && translate('metric.vulnerabilities.name')}
         </th>
+        <th className="thin nowrap text-right code-components-cell">
+          {baseComponent && translate('metric.code_smells.name')}
+        </th>
         <th className="thin nowrap text-right code-components-cell">
           {baseComponent && translate('metric.coverage.name')}
         </th>