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/component-measures/details/drilldown | |
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/component-measures/details/drilldown')
2 files changed, 8 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentCell.js b/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentCell.js index e3e7969da17..1ccdd7eed1b 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentCell.js +++ b/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/ComponentCell.js @@ -64,22 +64,19 @@ const ComponentCell = ({ component, isSelected, onClick }) => { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' - }} - > + }}> {component.refId == null || component.qualifier === 'DEV_PRJ' ? <a id={'component-measures-component-link-' + component.key} className={linkClassName} href={getComponentUrl(component.key)} - onClick={handleClick} - > + onClick={handleClick}> {inner} </a> : <a id={'component-measures-component-link-' + component.key} className={linkClassName} - href={getComponentUrl(component.refKey || component.key)} - > + href={getComponentUrl(component.refKey || component.key)}> <span className="big-spacer-right"> <i className="icon-detach" /> </span> diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/MeasureDrilldown.js b/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/MeasureDrilldown.js index f934eebd193..699bba21e71 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/MeasureDrilldown.js +++ b/server/sonar-web/src/main/js/apps/component-measures/details/drilldown/MeasureDrilldown.js @@ -43,8 +43,7 @@ export default class MeasureDrilldown extends React.Component { to={{ pathname: `/component_measures/metric/${metric.key}/list`, query: { id: component.key } - }} - > + }}> <IconList /> {translate('component_measures.tab.list')} </Link> @@ -56,8 +55,7 @@ export default class MeasureDrilldown extends React.Component { to={{ pathname: `/component_measures/metric/${metric.key}/tree`, query: { id: component.key } - }} - > + }}> <IconTree /> {translate('component_measures.tab.tree')} </Link> @@ -70,8 +68,7 @@ export default class MeasureDrilldown extends React.Component { to={{ pathname: `/component_measures/metric/${metric.key}/bubbles`, query: { id: component.key } - }} - > + }}> <IconBubbles /> {translate('component_measures.tab.bubbles')} </Link> @@ -84,8 +81,7 @@ export default class MeasureDrilldown extends React.Component { to={{ pathname: `/component_measures/metric/${metric.key}/treemap`, query: { id: component.key } - }} - > + }}> <IconTreemap /> {translate('component_measures.tab.treemap')} </Link> @@ -98,8 +94,7 @@ export default class MeasureDrilldown extends React.Component { to={{ pathname: `/component_measures/metric/${metric.key}/history`, query: { id: component.key } - }} - > + }}> <IconHistory /> {translate('component_measures.tab.history')} </Link> |