diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-03-04 13:52:10 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-03-07 16:10:23 +0100 |
commit | 063357cfe66f882459a9304e9793ba1039b89207 (patch) | |
tree | 9e45658a7bc9db3281bec310f69862ce4439e329 /server/sonar-web/src/main/js/apps/component-measures/utils.js | |
parent | b91bac7f106204167511b593b8a49e433abf9afc (diff) | |
download | sonarqube-063357cfe66f882459a9304e9793ba1039b89207.tar.gz sonarqube-063357cfe66f882459a9304e9793ba1039b89207.zip |
SONAR-7406 Display bubble chart of selected measure on the "Measures" page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/utils.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/component-measures/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/utils.js b/server/sonar-web/src/main/js/apps/component-measures/utils.js index f94af95f5c3..0a067cdebb1 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/utils.js +++ b/server/sonar-web/src/main/js/apps/component-measures/utils.js @@ -17,6 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import bubbles from './bubbles'; import { formatMeasure, formatMeasureVariation } from '../../helpers/measures'; export function getLeakValue (measure) { @@ -86,3 +87,7 @@ export function enhanceWithSingleMeasure (components) { export function hasHistory (metricKey) { return metricKey.indexOf('new_') !== 0; } + +export function hasBubbleChart (metricKey) { + return !!bubbles[metricKey]; +} |