aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/domain-bubble-chart.js8
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>;
}