diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-09-21 10:59:17 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-09-25 13:18:37 +0200 |
commit | 83a1a2b70b11cd2ccee93216851fadc49f09111d (patch) | |
tree | 033f3e030d535605d1a01566d6d034745f12b38e /server/sonar-web/src | |
parent | 53e0f8db8f5a7b5a5f50ec1cbe78b8c16280b3ce (diff) | |
download | sonarqube-83a1a2b70b11cd2ccee93216851fadc49f09111d.tar.gz sonarqube-83a1a2b70b11cd2ccee93216851fadc49f09111d.zip |
SONAR-9832 Filter out DATA and DISTRIB type metrics in custom graphs
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js index c3ff24b0732..ece4bdad6d7 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js @@ -60,6 +60,7 @@ export default class AddGraphMetric extends React.PureComponent { if ( metric.hidden || isDiffMetric(metric.key) || + ['DATA', 'DISTRIB'].includes(metric.type) || this.props.selectedMetrics.includes(metric.key) ) { return false; |