]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6945 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Fri, 4 Dec 2015 16:34:18 +0000 (17:34 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 4 Dec 2015 16:34:18 +0000 (17:34 +0100)
server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js

index 79245a21e9154a0728ae1cbe82853816f3811bde..3f89f636e352bf0de55c4ce938c175d95bbedbea 100644 (file)
@@ -42,7 +42,11 @@ export class DomainBubbleChart extends React.Component {
         });
         return _.extend(file, { measures });
       });
-      this.setState({ loading: false, files: this.limitFiles(files) });
+      this.setState({
+        loading: false,
+        files: this.limitFiles(files),
+        total: files.length
+      });
     });
   }
 
@@ -127,6 +131,8 @@ export class DomainBubbleChart extends React.Component {
         <div className="note text-right" style={{ position: 'relative', top: '-10px', left: '-10px' }}>
           X: {this.state.xMetric.name}
         </div>
+        {this.state.total > BUBBLES_LIMIT &&
+        <div className="note text-center">{window.tp('overview.chart.files.limit_message', BUBBLES_LIMIT)}</div>}
       </div>
     </div>;
   }