diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-04 17:34:18 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-04 17:34:18 +0100 |
commit | e3f24eae9edd75b198183ee7239c33918d9c8a2e (patch) | |
tree | 385715e275cc5a8aee24bf57519fa831ea976292 /server/sonar-web/src/main/js/apps/overview | |
parent | 8d8607018011f012d15d17f8645f2ad74795fbce (diff) | |
download | sonarqube-e3f24eae9edd75b198183ee7239c33918d9c8a2e.tar.gz sonarqube-e3f24eae9edd75b198183ee7239c33918d9c8a2e.zip |
SONAR-6945 apply feedback
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js b/server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js index 79245a21e91..3f89f636e35 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js +++ b/server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js @@ -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>; } |