Skip to content

Commit

Permalink
dashboards: update cluster utilization empty state message
Browse files Browse the repository at this point in the history
Align more closely with the other empty state messages on the page.
  • Loading branch information
spadgett committed Jan 28, 2020
1 parent 009dd9d commit a42d5a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
Expand Up @@ -23,20 +23,12 @@ export const BreakdownCardBody: React.FC<BreakdownBodyProps> = ({
}
if (!capacityUsed || !top5MetricsStats.length || hasLoadError) {
return (
<EmptyState variant={EmptyStateVariant.full}>
<Title className="graph-empty-state__title text-secondary" size="sm">
Not available.
</Title>
</EmptyState>
<div className="text-secondary">Not available</div>
);
}
if (capacityUsed === '0') {
return (
<EmptyState variant={EmptyStateVariant.full}>
<Title className="graph-empty-state__title text-secondary" size="sm">
Not enough usage data
</Title>
</EmptyState>
<div className="text-secondary">Not enough usage data</div>
);
}

Expand Down
4 changes: 0 additions & 4 deletions frontend/public/components/graphs/_graphs.scss
Expand Up @@ -9,10 +9,6 @@
white-space: nowrap;
}

.graph-empty-state__title {
font-size: 0.875rem;
}

.graph-wrapper {
align-items: stretch;
display: flex;
Expand Down
6 changes: 1 addition & 5 deletions frontend/public/components/graphs/graph-empty.tsx
Expand Up @@ -15,11 +15,7 @@ export const GraphEmpty: React.FC<GraphEmptyProps> = ({ height = 180, loading =
{loading ? (
<div className="skeleton-chart" />
) : (
<EmptyState variant={EmptyStateVariant.full}>
<Title className="graph-empty-state__title text-secondary" size="sm">
No datapoints found.
</Title>
</EmptyState>
<div className="text-secondary">No datapoints found.</div>
)}
</div>
);
Expand Down

0 comments on commit a42d5a0

Please sign in to comment.