Skip to content

Commit

Permalink
fix(core/healthCounts): Propagate css class to health counts in eithe…
Browse files Browse the repository at this point in the history
…r case (#4867)
  • Loading branch information
christopherthielen committed Feb 16, 2018
1 parent c67cd0e commit 2ab4270
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/scripts/modules/core/src/healthCounts/HealthCounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ export class HealthCounts extends React.Component<IHealthCountsProps, IHealthCou
counts.push(<span key="failed"> {container.failed} <span className="glyphicon glyphicon-Failed-triangle disabled small"/></span>);
}

const className = this.props.className || '';

if (percentLabel !== 'n/a') {
return (
<div className="health-counts">
<div className={`health-counts ${className}`}>
<Tooltip template={legend} placement={this.props.legendPlacement}>
<span className="counter instance-health-counts">
{counts}
Expand All @@ -141,7 +143,7 @@ export class HealthCounts extends React.Component<IHealthCountsProps, IHealthCou
);
} else if (container.outOfService) {
return (
<div className={`health-counts ${this.props.className ? this.props.className : ''}`}>
<div className={`health-counts ${className}`}>
<Tooltip template={legend}>
<span className="counter instance-health-counts">
<span>
Expand Down

0 comments on commit 2ab4270

Please sign in to comment.