diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-03-31 13:54:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-31 13:54:46 +0200 |
commit | fe716c6dc43d4d7acb437136b1c87902e8ff0bc4 (patch) | |
tree | 6b8a18d7a8f76de1fd34be3235d1639477b75d71 /server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js | |
parent | e660d605a27992d82d901b8fe0b8938da7afb270 (diff) | |
download | sonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.tar.gz sonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.zip |
re-format js code (#1877)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js b/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js index 76e704ae57a..5e0ce2c9b23 100644 --- a/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js +++ b/server/sonar-web/src/main/js/apps/projects/visualizations/SimpleBubbleChart.js @@ -53,11 +53,11 @@ export default class SimpleBubbleChart extends React.PureComponent { getTooltip(project: Project, x: ?number, y: ?number, size: ?number, color?: number) { const fullProjectName = this.props.displayOrganizations && project.organization - ? `<div class="little-spacer-bottom">${project.organization.name} / <strong>${project.name}</strong></div>` - : `<div class="little-spacer-bottom"><strong>${project.name}</strong></div>`; + ? `${project.organization.name} / <strong>${project.name}</strong>` + : `<strong>${project.name}</strong>`; const inner = [ - fullProjectName, + `<div class="little-spacer-bottom">${fullProjectName}</div>`, this.getMetricTooltip(this.props.xMetric, x), this.getMetricTooltip(this.props.yMetric, y), this.getMetricTooltip(this.props.sizeMetric, size) @@ -118,12 +118,13 @@ export default class SimpleBubbleChart extends React.PureComponent { {translate('metric', yMetric.key, 'name')} </div> <div className="measure-details-bubble-chart-axis size"> - {colorMetric != null && <span className="spacer-right"> - {translateWithParameters( - 'component_measures.legend.color_x', - translate('metric', colorMetric, 'name') - )} - </span>} + {colorMetric != null && + <span className="spacer-right"> + {translateWithParameters( + 'component_measures.legend.color_x', + translate('metric', colorMetric, 'name') + )} + </span>} {translateWithParameters( 'component_measures.legend.size_x', translate('metric', sizeMetric.key, 'name') |