Skip to content

Commit

Permalink
Merge pull request openshift#18 from bipuladh/no-data-state
Browse files Browse the repository at this point in the history
Show proper error message in Performance Card when no storage systems are present
  • Loading branch information
bipuladh committed Aug 30, 2021
2 parents e8b8bf3 + 405f97d commit d59888a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
&--error {
align-items: center;
display: flex;
min-height: 30px;
min-height: 150px;
place-content: center;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ const PerformanceCard: React.FC = () => {
/>
)}
{loading && <PerformanceCardLoading />}
{error && !loading && (
<div className="odf-performanceCardError">
<DataUnavailableError />{' '}
</div>
)}
{(error && !loading) ||
(_.isEmpty(rawRows) && (
<div className="performanceCard--error">
<DataUnavailableError />{' '}
</div>
))}
</DashboardCard>
);
};
Expand Down

0 comments on commit d59888a

Please sign in to comment.